![]() 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 For example, to copy the PSWindowsUpdate module from your computer to two remote hosts, run the commands (you need access to the remote servers via the WinRM protocol): To use these functions, you will have either to update the PowerShell version or delete the | Unblock-File line from the PSWindowsUpdate.psm1 file manually.Īfter installing the PSWindowsUpdate module on your computer, you can remotely install it on other computers or servers using the Update-WUModule cmdlet. The cause is that the module uses some functions that appeared only in PowerShell 3.0. In Windows 7/Windows Server 2008 R2, when importing the PSWindowsUpdate module, the following error may appear: The term “Unblock-File” is not recognized as the name of a cmdlet.
0 Comments
Leave a Reply. |