Difference between revisions of "Useful PowerShell Commands"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
Get-Date | Get-Date | ||
Get-TimeZone | Get-TimeZone | ||
<h3>[[Update Windows From PowerShell]]</h3> | |||
<h3>Import csv file </h3> | |||
import-csv .\filename.csv | | |||
==[[Main_Page| Home]] - [[PowerShell|Category]]== | ==[[Main_Page| Home]] - [[PowerShell|Category]]== |
Revision as of 16:01, 18 October 2024
Get-ComputerInfo
Accessing the properties of a command
Get-Computerinfo -Properties csusername Get-Computerinfo -Properties csusername | Get-Member Get-ComputerInfo | Format-List OsType,osName,csusername
Write output to the screen, like Echo
Write-Output "Hello World"
Read Text file
Get-Content filename.txt
Rename-Computer Restart-Computer Get-Date Get-TimeZone
Update Windows From PowerShell
Import csv file
import-csv .\filename.csv |