-
Notifications
You must be signed in to change notification settings - Fork 476
Get PendingReboot
Get the pending reboot status on a local computer.
Get-PendingReboot [<CommonParameters>]
Check WMI and the registry to determine if the system has a pending reboot operation from any of the following:
a) Component Based Servicing (Vista, Windows 2008)
b) Windows Update / Auto Update (XP, Windows 2003 / 2008)
c) SCCM 2012 Clients (DetermineIfRebootPending WMI method)
d) App-V Pending Tasks (global based Appv 5.0 SP2)
e) Pending File Rename Operations (XP, Windows 2003 / 2008)
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
-------------------------- EXAMPLE 1 --------------------------
PS C:>Get-PendingReboot
Returns custom object with following properties:
ComputerName, LastBootUpTime, IsSystemRebootPending, IsCBServicingRebootPending, IsWindowsUpdateRebootPending, IsSCCMClientRebootPending, IsFileRenameRebootPending,
PendingFileRenameOperations, ErrorMsg
*Notes: ErrorMsg only contains something if an error occurred
-------------------------- EXAMPLE 2 --------------------------
PS C:>(Get-PendingReboot).IsSystemRebootPending
Returns boolean value determining whether or not there is a pending reboot operation.
To see the examples, type: Get-Help Get-PendingReboot -Examples
For more information, type: Get-Help Get-PendingReboot -Detailed
For technical information, type: Get-Help Get-PendingReboot -Full
For online help, type: Get-Help Get-PendingReboot -Online
- Home
- Toolkit Functionality
- Toolkit Components
-
Toolkit Usage
- Launching the Toolkit
- Customizing the Toolkit
-
Example Deployments
- Building an Adobe Reader installation with the PowerShell App Deployment Toolkit
- Deploy the Adobe Reader installation using SCCM 2007 / SCCM 2012 package
- Deploy the Adobe Reader installation using SCCM 2012 Application Model
- An advanced Office 2013 SP1 installation with the PowerShell App Deployment Toolkit
- Zero-Config MSI Install
- Toolkit Variables
- Toolkit Exit Codes
-
Toolkit Functions
- Convert-RegistryPath
- Copy-File
- Disable-TerminalServerInstallMode
- Enable-TerminalServerInstallMode
- Execute-MSI
- Execute-MSP
- Execute-Process
- Execute-ProcessAsUser
- Exit-Script
- Get-FileVersion
- Get-FreeDiskSpace
- Get-HardwarePlatform
- Get-IniValue
- Get-InstalledApplication
- Get-LoggedOnUser
- Get-PendingReboot
- Get-RegistryKey
- Get-ScheduledTask
- Get-ServiceStartMode
- Get-UniversalDate
- Get-UserProfiles
- Get-WindowTitle
- Install-MSUpdates
- Install-SCCMSoftwareUpdates
- Invoke-HKCURegistrySettingsForAllUsers
- Invoke-RegisterOrUnregisterDLL
- Invoke-SCCMTask
- New-Folder
- New-MsiTransform
- New-Shortcut
- Remove-File
- Remove-Folder
- Remove-MSIApplications
- Remove-RegistryKey
- Resolve-Error
- Send-Keys
- Set-ActiveSetup
- Set-IniValue
- Set-PinnedApplication
- Set-RegistryKey
- Set-ServiceStartMode
- Show-BalloonTip
- Show-DialogBox
- Show-InstallationProgress
- Show-InstallationPrompt
- Show-InstallationRestartPrompt
- Show-InstallationWelcome
- Start-ServiceAndDependencies
- Stop-ServiceAndDependencies
- Test-Battery
- Test-MSUpdates
- Test-NetworkConnection
- Test-PowerPoint
- Test-RegistryValue
- Test-ServiceExists
- Update-Desktop
- Update-GroupPolicy
- Update-SessionEnvironmentVariables
- Write-Log