VBscript to check/uncheck...

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
ajgtx
Posts: 25
Joined: Wed Feb 20, 2008 12:50 am

VBscript to check/uncheck...

Post by ajgtx » Thu May 08, 2008 5:04 am

Greetings!
In regards to pushing MSI packages via AD GPO, I'm looking for a script that will check/uncheck the box "uninstall this application when it falls out of scope". Does anyone know if this is possible and if so, what the code may look like?

Thanks!

User avatar
ajgtx
Posts: 25
Joined: Wed Feb 20, 2008 12:50 am

VBscript to check/uncheck...

Post by ajgtx » Thu May 08, 2008 5:04 am

Greetings!
In regards to pushing MSI packages via AD GPO, I'm looking for a script that will check/uncheck the box "uninstall this application when it falls out of scope". Does anyone know if this is possible and if so, what the code may look like?

Thanks!

User avatar
ajgtx
Posts: 25
Joined: Wed Feb 20, 2008 12:50 am

VBscript to check/uncheck...

Post by ajgtx » Thu May 08, 2008 5:29 am

Doesn't have to be VBscript, just anything to get the job done. Preferrably not with a 3rd party app though, if it can be avoided.

User avatar
donj
Posts: 416
Joined: Thu Nov 16, 2006 9:02 pm

VBscript to check/uncheck...

Post by donj » Thu May 08, 2008 7:33 am

You install it on whatever machine is running the script. It's not an "agent" or anything. And it's a set of add-in commands for PowerShell, not standalone software. As for rights, you need to be able to edit a GPO - generally, that means the user utilizing the software needs to be a domain admin. If you permission your GPOs differently, then you may need different rights.

Think of it as running a command-line utility. Whoever runs the utility needs permission to do whatever the utility is doing.

User avatar
ajgtx
Posts: 25
Joined: Wed Feb 20, 2008 12:50 am

VBscript to check/uncheck...

Post by ajgtx » Thu May 08, 2008 11:19 pm

From reading about the freeware version of the app, it doesn't appear that there are any GPO edit commands that come with that version of the software. How difficult/feasible would it be to create my own scripts/commands using PowerShell to edit Group Policies?

Locked