I have windows update automatically set to download updates but not install them. I would like to use get-wulist to just tell me what patches have been downloaded without going out to microsoft servers. going out to the servers can take a while and i need this script to report back very quickly. is this possible?
Hi Im trying to run invoke-wuinstal
l in a list of servers but I get a prompt for each server to "confirm" the task, as far I can see there is a switch -confirm but looks like is not working, can you please advise? Cheers.
e" without the quotes. PowerShell's confirm flag syntax is slightly different than the rest.
Before one can run Invoke-WUInstal
l the PSWindowsUpdate module has to be installed on remote machines. Is there a way to install this module remotely? I am sorry but I am somewhat new to Windows world about 30+ years in the Unix world.
l will automatically download and install the PSWindowUpdate module on the target computer. See lines 91-113 of Invoke-WUInstal l.ps1.
I have used task scheduler to schedule a task at startup to do: get-wuinstall -serviceid <my_wsus_server
> -acceptall -autoreboot -verbose Everything seems to work till a reboot is needed (and I expected the reboot to pick up again and do any remaining updates). Even if no user is logged in the server does not seem to reboot on its own. What am I missing?
Great script. I am however, confused about Invoke-WUInstal
l. I have read in many question/answer that it does not work (or that it will not work on some platforms.) I am trying to use it from a win7 to a win7 target. in file Invoke-WUInstal l.ps1 the example shows -Credential being used but the cod eodes not accept this parameter. When I tried to use Invoke-WUInstal l i got a "can't access 192.168.35.76 (my target machine). try to use winrm qc." Should I be able to invoke remote updates? I would like to keep invoking remote updates till no more are left. I wish Get-WUInstall had an option "-RepeatTillNoM oreUpdates". Thanks again for nice script.
Can get-wuinstall point to a WSUS server rather than going right to Microsoft? I think this is what the -serviceID might be but I'm not sure. If so, are there details on how to use this? thanks!
Ok, I figured it out. Get-WUServiceMa
nager will give you the GUID of the source(s) you have configured. Then, you use that GUID as an argument to -serviceID.
Can the -MicrosoftUpdat
e option be used on a remote computer? Get-WUList -ComputerName Server1 -Category 'Critical' -MicrosoftUpdat e Software I get the following error when I try. "WARNING: Can't find registered service Microsoft Update. Use Get-WUServiceMa nager to get registered service." Great module! Thanks, Scott
I was able to get this to work remotely using a workaround. Using Psremoting failed. To make it work remotely, I created(with PoSH) one scheduled task on each of my servers that then call a script locally to invoke the commands. It works fine and I've scheduled the task to run on demand rather than at any set date/time. The scheduled task can be called remotely via script as well. Regards
I get the result below when running WUHistory.ps1 How do I determine if the update was successful? Is the fact that it was found at all a confirmation or do the result codes tell me something? My goal is to search a list of 70+ computers to make sure recent updates were installed successfully. I am new to all of this hopefully my question make sense. Thanks! KB : KB2840628 ComputerName : Computer1 Operation : 1 ResultCode : 2 HResult : 0 Date : 8/10/2013 7:10:00 AM UpdateIdentity : System.__ComObj
ect Title : Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64 (KB2840628) Description : A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing th is update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system. UnmappedResultC ode : 0 ClientApplicati onID : AutomaticUpdate s ServerSelection : 1 ServiceID : UninstallationS teps : System.__ComObj ect UninstallationN otes : This software update can be removed by selecting View installed updates in the Programs and Features Control Panel. SupportUrl : http://support. microsoft.com Categories : System.__ComObj ect
Hi, this is really a great tool! just one thing to note, even if i guess it's because of win 2012 the installations went all ok, but the update history remains untouched (as the datastore.edb file also) Updates are correctly listed under Program & features / Installed Updates, as well if queryed by wmi Thanks a lot! Juri
Hi Michal, Great functions but is there a way to force a reboot after the patches have been installed? I'm using the -autoreboot but remote machines don't reboot.
I've to run the VBS script from http://msdn.mic
rosoft.com/en-u s/library/windo ws/desktop/aa82 6676(v=vs.85).a spx No success. I posted a comment on that page as well.