SMS SQL for Oldest and Newest Inventory Dates

Three simple little queries to show you both the oldest and newest date for your clients hardware and software inventory.

----Begin SQL----

SELECT Min(LastHWScan),
Max(LastHWScan)
From v_GS_WORKSTATION_STATUS

Select Min(LastScanDate),
Max(LastScanDate)
From v_GS_LastSoftwareScan

Select Min(LastCollectedFileScanDate),
Max(LastCollectedFileScanDate)
From v_GS_LastSoftwareScan

----End SQL----

About the Author

Emmanuel Tsouris is a Systems Management veteran and Developer Advocate specializing in PowerShell and Cloud Automation. He maintains DotVBS to preserve legacy knowledge for the "archaeologist admin."

Ready to move from VBScript to the Cloud? Check out his book, Pro PowerShell for Amazon Web Services.

Visit EmmanuelTsouris.com for his latest projects.

As an Amazon Associate, I earn from qualifying purchases at no cost to you.

Comments

Popular posts from this blog

SMS "Program failed (run time exceeded)" 10070

SMS "Waiting for User Condition" 10036

Reading the SCCM Client GUID