Powershell get last windows update




















Specifies the object that contains the WSUS server. This value is obtained by calling the Get-WsusServer cmdlet and passing the resulting IUpdateServer object into this cmdlet. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info.

Contents Exit focus mode. Archived Forums. Sign in to vote. I am attempting to use powershell to get the latest update date and or patch applied to servers in my environment.

I am using the get-wsuscomputer command to pull information that gets me close to what I want. Does anyone have any examples or now of a better way to do what I am trying to do?

Thursday, January 17, PM. Marked as answer by jpcapone Friday, January 18, PM. The solution mentioned by Leon is detailed and useful, and Powershell makes it easy to reach our requirements for querying the latest update time and updating the device.

At the same time, there are other ways, the same is to use Powershall to get the latest updates and environment, you can also use for your reference. If you are following me for a long you must be pretty sure I use the Foreach loop wildly and in this script as well I will be using the Foreach loop to get my required info.

It will act as an array so that it will store the result from each server one by one. If the server is reachable then it will enter the if condition. It applies similarly to others as well. Below is the result of the script and as you can see it will create an HTML file ad thank god we have added the CSS code so that it looks good.

Attaching the snap below. Things you should always remember is to try with one server so that it will be easy for you to make changes. Let me know if you want a blog post on some other script that might amaze you. We are working continuously to provide you with the better and the best scripts daily.

Writing PowerShell script is my obsession. Get answers from your peers along with millions of IT pros who visit Spiceworks. Popular Topics in PowerShell. Which of the following retains the information it's storing when the system power is turned off?

Submit ». Pure Capsaicin. Neally This person is a verified professional.



0コメント

  • 1000 / 1000