Skip to content

Commit

Permalink
see changelog for v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Sep 24, 2018
1 parent d4ccffb commit bd2b789
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 17 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# 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 as well as a few other update related settings.
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. This module will not work on Windows 10 Home. If you are running Windows 10 Enterprise, your settings may be managed via Group Policy.

You can install the latest version of this module from the PowerShell Gallery.

```powershell
Install-Module WindowsUpdateSetting
```

The module should work on PowerShell Core running on a Windows platform.

## Command Overview

Expand Down Expand Up @@ -84,6 +92,6 @@ Computername FeatureUpdateDeferral QualityUpdateDeferral
BOVINE320 30 7
```

**You should test all of these commands on a non-production system**
**You should test all of these commands on a non-production system.**

*last updated 9/20/2018*
*last updated 9/24/2018*
14 changes: 8 additions & 6 deletions WindowsUpdateSetting.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
RootModule = 'WindowsUpdateSetting.psm1'

# Version number of this module.
ModuleVersion = '0.3.0'
ModuleVersion = '0.3.1'

# Supported PSEditions
CompatiblePSEditions = @("Desktop")
# CompatiblePSEditions = @("")

# ID used to uniquely identify this module
GUID = '1d09501c-fc3f-424a-9fb9-c2a5d6f59001'
Expand Down Expand Up @@ -65,14 +65,16 @@ PowerShellVersion = '5.1'
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Suspend-WindowsUpdate',
FunctionsToExport = @(
'Suspend-WindowsUpdate',
'Resume-WindowsUpdate',
'Get-WindowsUpdateSetting',
'Test-IsWindowsUpdatePaused',
'Set-WindowsActiveHours',
'Get-WindowsActiveHours',
'Get-WindowsUpdateDeferral',
'Set-WindowsUpdateDeferral'
)

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = '*'
Expand All @@ -81,7 +83,7 @@ CmdletsToExport = '*'
VariablesToExport = ''

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = ''
AliasesToExport = 'rwu','swu','gwu'

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand All @@ -98,7 +100,7 @@ PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = @('Windows10','WindowsUpdate')
Tags = @('Windows10','WindowsUpdate')

# A URL to the license for this module.
LicenseUri = 'https://github.com/jdhitsolutions/WindowsUpdateSetting/blob/master/license.txt'
Expand All @@ -107,7 +109,7 @@ PrivateData = @{
ProjectUri = 'https://github.com/jdhitsolutions/WindowsUpdateSetting'

# A URL to an icon representing this module.
# IconUri = ''
IconUri = 'https://github.com/jdhitsolutions/WindowsUpdateSetting/blob/master/assets/windows10.ico'

# ReleaseNotes of this module
# ReleaseNotes = ''
Expand Down
3 changes: 3 additions & 0 deletions WindowsUpdateSetting.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Function Suspend-WindowsUpdate {

[CmdletBinding(SupportsShouldProcess)]
[OutputType("None", "WindowsUpdateSetting")]
[Alias("swu")]

Param(
[Parameter(HelpMessage = "Enter a datetime to resume updates. This must be less than 35 days.")]
Expand Down Expand Up @@ -191,6 +192,7 @@ Function Resume-WindowsUpdate {

[CmdletBinding(SupportsShouldProcess)]
[OutputType("None", "WindowsUpdateSetting")]
[Alias("rwu")]

Param([switch]$Passthru)

Expand Down Expand Up @@ -265,6 +267,7 @@ Function Get-WindowsUpdateSetting {

[CmdletBinding()]
[OutputType('WindowsUpdateSetting')]
[Alias("gwu")]

Param()

Expand Down
Binary file added assets/windows10.ico
Binary file not shown.
10 changes: 9 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Changelog for WindowsUpdateSetting

## v0.3.1

+ Updated manifest
+ Updated help for `Suspend-WindowsUpdate` (Issue #4)
+ Added module icon
+ Updated README
+ Added some command aliases

## v0.3.0

+ Updated ShouldProcess message on `Suspend-WindowsUpdate` (Issue #3)
+ Added custom type names to PSCustomobject output (Issue #2)
+ Added custom type names to PSCustomObject output (Issue #2)
+ Updated README
+ Updated documentation

Expand Down
6 changes: 3 additions & 3 deletions docs/Suspend-WindowsUpdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

Pause Windows Updates for 35 days.
Pause Windows Updates for 35 days or less.

## SYNTAX

Expand All @@ -20,7 +20,7 @@ Suspend-WindowsUpdate [-Resume <DateTime>] [-Passthru] [-WhatIf] [-Confirm] [<Co
## DESCRIPTION

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 closer date.
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.

## EXAMPLES

Expand Down Expand Up @@ -119,7 +119,7 @@ Aliases:

Required: False
Position: Named
Default value: None
Default value: 35 days from now
Accept pipeline input: False
Accept wildcard characters: False
```
Expand Down
8 changes: 4 additions & 4 deletions en-us/WindowsUpdateSetting-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ BOVINE320 30 7</dev:code>
<command:verb>Suspend</command:verb>
<command:noun>WindowsUpdate</command:noun>
<maml:description>
<maml:para>Pause Windows Updates for 35 days.</maml:para>
<maml:para>Pause Windows Updates for 35 days or less.</maml:para>
</maml:description>
</command:details>
<maml:description>
<maml:para>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 closer date.</maml:para>
<maml:para>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.</maml:para>
</maml:description>
<command:syntax>
<command:syntaxItem>
Expand Down Expand Up @@ -762,7 +762,7 @@ BOVINE320 30 7</dev:code>
<maml:name>DateTime</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
<dev:defaultValue>35 days from now</dev:defaultValue>
</command:parameter>
</command:syntaxItem>
</command:syntax>
Expand Down Expand Up @@ -813,7 +813,7 @@ BOVINE320 30 7</dev:code>
<maml:name>DateTime</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
<dev:defaultValue>35 days from now</dev:defaultValue>
</command:parameter>
</command:parameters>
<command:inputTypes />
Expand Down

0 comments on commit bd2b789

Please sign in to comment.