-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPSWindowsUpdate.psm1
More file actions
22 lines (18 loc) · 1.86 KB
/
PSWindowsUpdate.psm1
File metadata and controls
22 lines (18 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Get-ChildItem -Path $PSScriptRoot | Unblock-File
#support old function name
New-Alias Get-WUList Get-WindowsUpdate
New-Alias Get-WUInstall Get-WindowsUpdate
New-Alias Install-WindowsUpdate Get-WindowsUpdate
New-Alias Download-WindowsUpdate Get-WindowsUpdate
New-Alias Hide-WindowsUpdate Get-WindowsUpdate
New-Alias UnHide-WindowsUpdate Get-WindowsUpdate
New-Alias Show-WindowsUpdate Get-WindowsUpdate
New-Alias Uninstall-WindowsUpdate Remove-WindowsUpdate
New-Alias Clear-WUJob Get-WUJob
$PSDefaultParameterValues.Add("Install-WindowsUpdate:Install",$true)
$PSDefaultParameterValues.Add("Download-WindowsUpdate:Download",$true)
$PSDefaultParameterValues.Add("Hide-WindowsUpdate:Hide",$true)
$PSDefaultParameterValues.Add("UnHide-WindowsUpdate:Hide",$false)
$PSDefaultParameterValues.Add("Show-WindowsUpdate:Hide",$false)
$PSDefaultParameterValues.Add("Clear-WUJob:ClearExpired",$true)
Export-ModuleMember -Cmdlet * -Alias *