| external help file | WindowsUpdateSetting-help.xml |
|---|---|
| Module Name | WindowsUpdateSetting |
| online version | https://jdhitsolutions.com/yourls/22231b |
| schema | 2.0.0 |
Pause Windows Updates for 35 days or less.
Suspend-WindowsUpdate [-Resume <DateTime>] [-Passthru] [-WhatIf] [-Confirm] [<CommonParameters>]This command achieves the same result as pausing Windows Updates in Settings/Windows Update/Advanced Settings. By default your system will not check or get any updates for 35 days. But you can specify a date that is less than 35 days.
PS C:\> Suspend-WindowsUpdatesPS C:\> Suspend-WindowsUpdate -passthru
Computername: PROSPERO
Paused PauseStartUTC PauseEndUTC TimeRemaining
------ ------------- ----------- -------------
True 3/18/2025 1:42:20 PM 4/22/2025 1:42:20 PM 35.03:59:59PS C:\> Suspend-WindowsUpdate -Resume (Get-Date).AddDays(10)Suspend Windows Updates for about 10 days.
Display the current update settings.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseEnter a datetime to resume updates. This must be less than 35 days.
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 35 days from now
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Learn more about PowerShell: https://buttondown.com/behind-the-powershell-pipeline