Test-PSPendingReboot
SYNOPSIS
This script tests various registry values to see if the local computer is pending a reboot.
SYNTAX
Test-PSPendingReboot [-ComputerName] <String[]> [[-Credential] <PSCredential>] [<CommonParameters>]
DESCRIPTION
This script tests various registry values to see if the local computer is pending a reboot.
EXAMPLES
EXAMPLE 1
Test-PSPendingReboot -ComputerName localhost
PARAMETERS
-ComputerName
Computer to check.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Credential
User with admin access.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
General notes