?
Solved

Check application install/update date programatically

Posted on 2013-06-06
5
Medium Priority
?
431 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 71

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 71

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 71

Accepted Solution

by:
Qlemo earned 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
Suggested Courses

650 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