Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query computers for specific app and write result to txt

Status
Not open for further replies.

nesdog

MIS
Jan 5, 2010
2
US
I'm looking for a VB script that will allow me to search for an app on computers. I can put pieces together but wondering if someone else has already done this. Code would look like this:

Look at OU [edited into script] for computer names.
Query machines for app [edited into script, using hklm uninstall key]
If exists = true
Write computer name to excel file with true/false status.

I'm using this to confirm that software updates are installed on several hundred machines.

Thanks....
 
you might be better off asking for help in writing a script rather than asking for someone to give you it.
perhaps start with the enumerating computers in an OU part...
 
MrMovie is correct - please tell us what you have done already, what has worked for you and what hasn't, etc. There is no sense in someone reworking code for your program if you already have it.

------------------------------------
To query an OU, you can try this:

Set colItems = GetObject("LDAP://ou=Computers, dc=microsoft, dc=com")

For Each objItem in colItems
'Then do what you want here
Next
------------------------------------

We are all here to help each other out - and I'll be the first to admit that I have received A LOT of help from generous people on this site, but please don't expect someone to write everything for you. Everyone here volunteers to help each other and before you ask a question and take up someone's time, it is courteous (and expected) to have done some research first.
 
You're right of course...just didn't want to post a bunch of code if someone had done it already. I'll put my [non]fucntional!] pieces together and see what advice you've got. Thanks for the patience...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top