Skip to content

Commit

Permalink
Github related updates and revised README
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Sep 20, 2018
1 parent f292c93 commit 408d6cb
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 5 deletions.
58 changes: 56 additions & 2 deletions README.md
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.

![settings](./assets/settings.png)

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*
6 changes: 3 additions & 3 deletions WindowsUpdateSetting.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
RootModule = 'WindowsUpdateSetting.psm1'

# Version number of this module.
ModuleVersion = '0.2.0'
ModuleVersion = '0.2.1'

# Supported PSEditions
CompatiblePSEditions = @("Desktop")
Expand Down Expand Up @@ -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 = ''
Expand Down
Binary file added assets/activehours.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/deferrals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions changelog.md
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
Expand Down

0 comments on commit 408d6cb

Please sign in to comment.