Add-WUServiceManager – register the update server (Windows Update Service Manager) on the computer.Uninstall-WindowsUpdate – remove update using the Remove-WindowsUpdate. Hide-WindowsUpdate (alias for Get-WindowsUpdate -Hide:$false) – hide update.Get-WUInstall, Install-WindowsUpdate (alias for Get-WindowsUpdate –Install) – install Windows updates.Download-WindowsUpdate (alias for Get-WindowsUpdate –Download) - get a list of updates and download them.Clear-WUJob – use the Get-WUJob to clear the WUJob in Task Scheduler.Let’s describe the usage of the module commands in brief: You can display the list of available cmdlets in the PSWindowsUpdate module as follows: Save-Module -Name PSWindowsUpdate –Path \\lon-fs02\psmodules\ PSWindowsUpdate Cmdlets List To save (export) the PoSh module to a shared network folder for further importing on other computers, run: Update-WUModule -ComputerName $Targets –Local You can now import the module into your PowerShell session: Import-Module PSWindowsUpdate.Configure the PowerShell script execution policy: Set-ExecutionPolicy –ExecutionPolicy RemoteSigned -force.Copy the module to the following folder on the target computer %WINDIR%\System32\WindowsPowerShell\v1.0\Modules.Download the PSWindowsUpdate module to any online computer: Save-Module –Name PSWindowsUpdate –Path C:\ps\.If you have an older Windows version (Windows 7/8.1/Windows Server 2008 R2/2012 R2) or you don’t have direct Internet access, you can install PSWindowsUpdate manually (check the guide “ How to install PowerShell modules offline?”). Enable it for the current PowerShell session with the command: To install the module, you need to use the TLS 1.2 protocol for connection. When installing the PowerShell module on earlier versions of Windows 2012R2/Windows 8.1 and below, you may receive an error: Install-Module: Unable to download from URI.Unable to download the list of available providers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |