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
Solved

Check application install/update date programatically

Posted on 2013-06-06
5
394 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 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Utilizing an array to gracefully append to a list of EmailAddresses
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…

839 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