[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Check application install/update date programatically

Hello,

I need a way to check for applications updated today via command prompt, PS or vbscript.  For example, if Reader and Java were updated today I need a way to return the names of those applications.

Thanks in advance for any solutions offered.
0
crash1624
Asked:
crash1624
  • 3
  • 2
1 Solution
 
QlemoC++ DeveloperCommented:
In PowerShell, you can use this (very slow) method:
get-wmiobject Win32_Product -Filter "InstallDate = '$(get-date -format 'yyyyMMdd)'" | select Name, InstallDate

Open in new window

0
 
crash1624Author Commented:
That command isn't working for me.
0
 
QlemoC++ DeveloperCommented:
Yes, it is spitting out an error. Copied the wrong line.
get-wmiobject Win32_Product -Filter "InstallDate='$(get-date -format ""yyyyMMdd"")' " | select Name, InstallDate

Open in new window

This should at least run for a while. If it does not return with a result after several minutes, nothing has been found with today's date. If you know a date for sure, e.g. 4th, test with
get-wmiobject Win32_Product -Filter "InstallDate='20130604' " | select Name, InstallDate

Open in new window

0
 
crash1624Author Commented:
That command isn't working for me either but thanks for the input.  Any other ideas?
0
 
QlemoC++ DeveloperCommented:
"Isn't working for me" is not very helpful. Is there an error message, no output at all, or wrong output? Another debugging option is to use
get-wmiobject Win32_Product | select Name, InstallDate

Open in new window

, and THAT should return a lot of data. I have now provided you with enough info to debug yourself - it is working for me, as long as I provide correct data.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now