Jump to content


melmar

Getting last windows update

Recommended Posts

Hi All,

Hoping someone can advise on the below.

I got the following query from another site and it works fine, except it gives the first update installed on my collections. I'm looking for the latest update installed and not the first.

 

Can any one advise please. All I want to do is get the last update that was applied on all my remote computers.

 

Thanks a mil.

 

SELECT
vWorkstationStatus.Name AS 'Computer name',
vWorkstationStatus.UserName AS 'User name',
v_GS_COMPUTER_SYSTEM.Manufacturer0 AS 'Manufacturer',
v_GS_COMPUTER_SYSTEM.Model0 AS 'Model',
v_GS_PC_BIOS.SerialNumber0 AS 'Serialnumber', CONVERT(varchar(20),
v_GS_OPERATING_SYSTEM.LastBootUpTime0, 100) AS 'Last Boot',
v_GS_OPERATING_SYSTEM.Caption0,
v_GS_OPERATING_SYSTEM.InstallDate0 AS 'Installation date'
FROM
vWorkstationStatus INNER JOIN
v_GS_PC_BIOS ON vWorkstationStatus.ResourceID = v_GS_PC_BIOS.ResourceID INNER JOIN
v_GS_OPERATING_SYSTEM ON vWorkstationStatus.ResourceID = v_GS_OPERATING_SYSTEM.ResourceID INNER JOIN
v_GS_COMPUTER_SYSTEM ON v_GS_PC_BIOS.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID
WHERE
(vWorkstationStatus.OperatingSystem not like N'%server %')
Order by 'Computer name', Caption0 ASC;

 

 

Share this post


Link to post
Share on other sites

This query will in no way, shape or form, show you when the last SU was installed. For that matter, when the last SU was applied is completely useless info. Why? Because what happen when 1st SU fails but the 2nd SU is successful. You will have a false believe that you server it update.

Instead you should look at what SU are outstand for that server. This query will get you started. http://sccmug.ca/2009/02/25/patch-compliance-progression-report/

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.