System Configuration Commands in Windows Powershell
Here is the list of System commands in Windows Powershell.
- Get-Culture : This command shows the culture of the Operating System.
- Get-Date: This commands shows current date and time.
- Get-Host : This command shows Powershell version and culture information.
- Get-Random : This command shows the random number on the screen. We can also use this command to pick random object from the collection of objects.
- Get-Counter : This command prints the performance counter data.
Computer Recovery related commands
- Enable-ComputerRestore : This command enables the System Restore feature for specific drive.
- Disable-ComputerRestore : This command disables the System Restore feature for specific drive.
- Checkpoint-Computer : This command creates restore point.
- Get-ComputerRestorePoint : This command shows the restore point on the system.
Getting information using CIM
You can use CIM to get the information of the system. Some examples are given below.
- Get-CimInstance CIM_ComputerSystem
- Get-CimInstance Win32_OperatingSystem
Managing System
- Restart-Computer : This command allows you to restart the computer.
- Stop-Computer : This command lets you shut down system.
- Restore-Computer : This command lets you restore the system.
- Add-Computer : This command lets you add local computer to a domain or work group.
- Remove-Computer : This command removes the local computer from a work group or domain.
- Reset-ComputerMachinePassword : This command will reset the password of system.
- Get-Acl : This command prints the access control list of the file or registry key.
- Set-Acl : This command sets the access control list for a file or a registry key.
- ConvertFrom-SecureString : This command allows you to convert a secure string into an encrypted string.
- ConvertTo-SecureString : This command is opposite of above command.
Recent Comments