Solved

Check application install/update date programatically

Posted on 2013-06-06
5
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 39226656
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
ID: 39227334
That command isn't working for me.
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 39227383
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
ID: 39229945
That command isn't working for me either but thanks for the input.  Any other ideas?
0
 
LVL 69

Accepted Solution

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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