Solved

Check application install/update date programatically

Posted on 2013-06-06
5
362 Views
Last Modified: 2013-07-10
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
Comment
Question by:crash1624
  • 3
  • 2
5 Comments
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
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
 

Author Comment

by:crash1624
Comment Utility
That command isn't working for me.
0
 
LVL 68

Expert Comment

by:Qlemo
Comment Utility
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
 

Author Comment

by:crash1624
Comment Utility
That command isn't working for me either but thanks for the input.  Any other ideas?
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
Comment Utility
"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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now