Creating a GPO with Script

5 pts.
Tags:
Adobe
GPO
Group Policy Objects
I have created a GPO to push an Adobe update and I need to create a script to determine if the update gets pushed or not. I would like the script to check a registry key that contains the Adobe version. I have never created a script before for pusing a GPO and do not know where to begin. Can someone point me in the right direction and provide a sample script if possible?
ASKED: December 19, 2008  3:46 PM
UPDATED: April 4, 2009  5:43 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hereafter an example on how to get all Adobe products and versions installed in computers that are read from text file.

You simply create a text file named <b>C:\computers.txt</b> and then launch this VBS script.
All computers that will have the given product installed will be written to <b>C:\output.txt</b>

<pre>Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objOutPutFile = objFSO.CreateTextFile(“C:\output.txt”)
Set objFile = objFSO.OpenTextFile(“C:\computers.txt”, 1)
Do Until objFile.AtEndOfStream
ReadInfo objFile.ReadLine
Loop
objFile.Close
objOutPutFile.Close

Sub ReadInfo(ComputerName)
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!” & ComputerName & “\root\cimv2″)
Set colSoftware = objWMIService.ExecQuery _
(“Select * from Win32_Product”)
For Each objSoftware in colSoftware
If InStr(objSoftware.Caption,”Adobe”) > 0 Then ‘ change to to the exact name of the product
objOutPutFile.WriteLine ComputerName & “:” & objSoftware.Caption & ” ” objSoftware.SKUNumber & ” ” & objSoftware.Version & ” is installed”
End If
Next
End Sub
</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following