-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github related updates and revised README
- Loading branch information
1 parent
f292c93
commit 408d6cb
Showing
5 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,65 @@ | ||
# WindowsUpdateSetting | ||
|
||
The PowerShell commands in this module are intended to make it easier to automate the process of pausing and resuming Windows Updates on a Windows 10 desktop. | ||
The PowerShell commands in this module are intended to make it easier to automate the process of pausing and resuming Windows Updates on a Windows 10 desktop as well as a few other update related settings. | ||
|
||
Normally, you would use Settings to pause Windows Update for 35 days. | ||
|
||
 | ||
|
||
You can use this module to toggle that setting from a PowerShell prompt. | ||
|
||
*last updated 9/19/2018* | ||
```powershell | ||
PS C:\> Suspend-WindowsUpdate -passthru | ||
Computername : BOVINE320 | ||
UpdatesPaused : True | ||
PauseStartUTC : 9/20/2018 2:06:28 PM | ||
PauseEndUTC : 10/25/2018 2:06:28 PM | ||
Remaining : 35.03:59:59.1529862 | ||
``` | ||
|
||
Or you can specify a date, as long as it is less than 35 days. Use `Get-WindowsUpdateSetting` to view the current values or `Test-IsWindowsUpdatePaused` to test. | ||
|
||
This module also contains commands to set your active hours. | ||
|
||
 | ||
|
||
```powershell | ||
PS C:\> Get-WindowsActiveHours | ||
Computername ActiveHoursStart ActiveHoursEnd | ||
------------ ---------------- -------------- | ||
BOVINE320 6 21 | ||
PS C:\> Set-WindowsActiveHours -StartTime 6:00 -EndTime 20:00 -Passthru | ||
Computername ActiveHoursStart ActiveHoursEnd | ||
------------ ---------------- -------------- | ||
BOVINE320 6 20 | ||
``` | ||
|
||
The module also contains commands to manage deferrals of certain updates. | ||
|
||
 | ||
|
||
You can view and modify these settings. | ||
|
||
```powershell | ||
PS C:\> Get-WindowsUpdateDeferral | ||
Computername FeatureUpdateDeferral QualityUpdateDeferral | ||
------------ --------------------- --------------------- | ||
BOVINE320 30 7 | ||
PS C:\> set-WindowsUpdateDeferral -Feature 0 -Quality 0 -Passthru | ||
Computername FeatureUpdateDeferral QualityUpdateDeferral | ||
------------ --------------------- --------------------- | ||
BOVINE320 30 7 | ||
``` | ||
|
||
**You should test all of these commands on a non-production system** | ||
|
||
*last updated 9/20/2018* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Changelog for WindowsUpdateSetting | ||
|
||
## v0.2.1 | ||
|
||
+ Github updates | ||
+ Updated README | ||
|
||
## v0.2.0 | ||
|
||
+ Updated manifest | ||
|