Share via


how to run get-windowsupdatelog on a remote machiens

Question

Monday, June 3, 2019 1:50 PM

I've got 100s of machines that are failing to install patches and suspect its something to do with needing to decline a windows feature update in WSUS. I want to run the get-windowsupdatelog cmdlet on some machines without having to contact each users to do it.

I cant enable remote Powershell so that not an option. Has anyone come across a nice way of running it with something like psexec?

All replies (4)

Monday, June 3, 2019 2:51 PM

Hi gaz_11.

The Invoke-Command cmdlet allows you to execute PowerShell cmdlets on local and remote computers: read the blog post at https://blogs.technet.microsoft.com/runcmd/get-windowsupdatelog-if-it-were-only-that-easy/.
If you want to use the PsExec tool, you have to execute it to invoke the PowerShell executable file on the remote computer and pass the name of a script that execute the Get-WindowsUpdateLog cmdlet and then send the output file to your computer (as an example, as a mail attachment).

Bye.

Luigi Bruno
MCP, MOS, MTA, MCTS, MCSA, MCSE


Tuesday, June 4, 2019 8:25 AM

Thanks for the reply,

in the windows update log blog, it says it requires Windows Symbols when you to the download link it says “We are no longer publishing the offline symbol packages for Windows.” And further down the blog “And, almost like clockwork, we released an announcement that the process will be changing in version 1709 of Windows 10” which is the version of windows we are running.

So I have an issues, I think I know what the issues is but I have no simple way of getting log files from remote machines to confirm. Simple things like reviewing logs files on remotes machines shouldn’t be this difficult to do.


Wednesday, June 5, 2019 7:33 AM

Hi, 

I read the blog and introduction information about this symbol, so I think the thing get more simple and easy on your existing Windows system version Windows 10 1709, as we just run Get-WindowsUpdateLog command line is enough, there is no need to care about symbol. 

I noticed you said you can't enable PowerShell on remote computer, does it mean you can't run PowerShell command line on remote computer? Because I think the easy way is to create a Group Policy object and deploy a script to all computer which is used to run Get-WindowsUpdateLog command.

Bests, 

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, June 11, 2019 9:35 AM

Hi,

Haven't received your message a few days, was your issue resolved? 

I am proposing previous helpful replies as "Answered". Please feel free to try it and let me know the result. If the reply is helpful, please remember to mark it as answer which can help other community members who have same questions and find the helpful reply quickly.

Best regards,

Joy

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].