System Configuration Commands in Windows Powershell

Here is the list of System commands in Windows Powershell.

  1. Get-Culture : This command shows the culture of the Operating System.
  2. Get-Date: This commands shows current date and time.
  3. Get-Host : This command shows Powershell version and culture information.
  4. 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.
  5. Get-Counter : This command prints the performance counter data.

Computer Recovery related commands

  1. Enable-ComputerRestore : This command enables the System Restore feature for specific drive.
  2. Disable-ComputerRestore : This command disables the System Restore feature for specific drive.
  3. Checkpoint-Computer : This command creates restore point.
  4. 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.

  1. Get-CimInstance CIM_ComputerSystem
  2. Get-CimInstance Win32_OperatingSystem

Managing System

  1. Restart-Computer : This command allows you to restart the computer.
  2. Stop-Computer : This command lets you shut down system.
  3. Restore-Computer : This command lets you restore the system.
  4. Add-Computer : This command lets you add local computer to a domain or work group.
  5. Remove-Computer : This command removes the local computer from a work group or domain.
  6. Reset-ComputerMachinePassword : This command will reset the password of system.
  7. Get-Acl : This command prints the access control list of the file or registry key.
  8. Set-Acl : This command sets the access control list for a file or a registry key.
  9. ConvertFrom-SecureString : This command allows you to convert a secure string into an encrypted string.
  10. ConvertTo-SecureString : This command is opposite of above command.

You may also like...