SynopsisSuspends (hibernates) a local or remote Windows computer.
- Suspend-Computer [-ComputerName] [-Credential]
DescriptionSuspend-Computer is used to hibernate a local or remote computer.
- ComputerName The computer against which to run this cmdlet. You must always specify a computer name to this cmdlet. If you wish to run the cmdlet against the local computer, specify 'localhost' or '.' to this parameter.
- Credential The credentials under which to run the cmdlet. By default this cmdlet will run as the current user. Using this parameter and the Get-PSCredential cmdlet you can specify an alternate set of credentials under which to execute this command.
InputsSuspend-Computer accepts pipeline input for the ComputerName parameter and requires that the input object contains a property named either Computer, CN or ComputerName.
OutputsSuspend-Computer does not output any PowerShell objects.
NotesSuspend-Computer requires that the Remote Registry and RPC services are started on the computer it is trying to access and that DNS services are available to resolve target host names.
Example 1This command will hibernate the remote computer PC01:
C:\PS>Suspend-Computer -Computer PC01
Example 2This command will hibernate the local computer:
C:\PS>Suspend-Computer -Computer .