Difference between revisions of "Useful PowerShell Commands"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
Get-Computerinfo -Properties csusername | Get-Member | Get-Computerinfo -Properties csusername | Get-Member | ||
Get-ComputerInfo | Format-List OsType,osName,csusername | Get-ComputerInfo | Format-List OsType,osName,csusername | ||
<h3> Write output to the screen, like Echo </h3> | |||
Write-Output "Hello World" | |||
Rename-Computer | Rename-Computer |
Revision as of 19:59, 17 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"
Rename-Computer Restart-Computer Get-Date Get-TimeZone