Select Page

Required Files: SharedScriptRequiredFile 10


Gathers a list of all available windows updates


 

Import-Module $env:SyncroModule
 
write-host "Extracting necessary files to User Profile..."
 
$UserProfilePath = $env:USERPROFILE + "\Documents\WindowsPowerShell\Modules"
Expand-Archive C:\Temp\PSWindowsUpdate.zip -DestinationPath $UserProfilePath
 
write-host "Extracting necessary files to System32..."
 
$Win32Path = $env:WINDIR + "\System32\WindowsPowerShell\v1.0\Modules"
Expand-Archive C:\Temp\PSWindowsUpdate.zip -DestinationPath $Win32Path
 
write-host "Importing Module..."
 
Import-Module PSWindowsUpdate
 
write-host "Getting list of Windows Updates..."
 
"List of Available Windows Updates:"
Get-WUList
 
write-host "Done."