Forum Discussion
LL10890
Jan 06, 2022Copper Contributor
Powershell Declaring XML in ModuleBase
I am automating Windows Updates on remote servers. I am using the PSWindowsUpdate module to make the updates. My question is regarding this error: Install-WindowsUpdate : Missing SmtpServer; Use -PS...
- Jan 27, 2022
LL10890 Did this work for you?
Jan 19, 2022
LL10890 Sorry, my bad 🙂 It should be in a hashtable format, command should be something like
Install-WindowsUpdate -ComputerName nysrv1 -MicrosoftUpdate -AcceptAll - IgnoreReboot -SendReport –PSWUSettings @{SmtpServer="smtp.woshub.com";From="Email address removed";To="Email address removed";Port=25} -Verbose
(http://woshub.com/pswindowsupdate-module/)