diff --git a/README.md b/README.md index 8e39f0d..940e80a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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. @@ -8,4 +8,58 @@ 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. + +![activehours](./assets/activehours.png) + +```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. + +![deferrals](./assets/deferrals.png) + +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* diff --git a/WindowsUpdateSetting.psd1 b/WindowsUpdateSetting.psd1 index 3b06e49..e162b79 100644 --- a/WindowsUpdateSetting.psd1 +++ b/WindowsUpdateSetting.psd1 @@ -8,7 +8,7 @@ RootModule = 'WindowsUpdateSetting.psm1' # Version number of this module. -ModuleVersion = '0.2.0' +ModuleVersion = '0.2.1' # Supported PSEditions CompatiblePSEditions = @("Desktop") @@ -101,10 +101,10 @@ PrivateData = @{ Tags = @('Windows10','WindowsUpdate') # A URL to the license for this module. - # LicenseUri = '' + LicenseUri = 'https://github.com/jdhitsolutions/WindowsUpdateSetting/blob/master/license.txt' # A URL to the main website for this project. - # ProjectUri = '' + ProjectUri = 'https://github.com/jdhitsolutions/WindowsUpdateSetting' # A URL to an icon representing this module. # IconUri = '' diff --git a/assets/activehours.png b/assets/activehours.png new file mode 100644 index 0000000..60a91b8 Binary files /dev/null and b/assets/activehours.png differ diff --git a/assets/deferrals.png b/assets/deferrals.png new file mode 100644 index 0000000..f7d5ee2 Binary files /dev/null and b/assets/deferrals.png differ diff --git a/changelog.md b/changelog.md index cb36360..2c4050f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog for WindowsUpdateSetting +## v0.2.1 + ++ Github updates ++ Updated README + ## v0.2.0 + Updated manifest