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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPO Startup VBScript not running

Status
Not open for further replies.

disturbedone

Vendor
Sep 28, 2006
781
AU
I've got a (currently) W2K8R2 domain with XPSP3 clients. One particular VBScript runs in a GPO as a computer startup script that a) checks the resolution and b) based on the resolution runs BGInfo.exe from a specified folder utilizing the relavant *.bgi file to create a desktop that is displayed before the user logs on. This is so we can see what the computer name & IP is before logon. Another GPO as a logon script uses a different *.bgi file to display more information.

That works perfectly on XP but not on Win7. The logon script still works fine but the startup script does not.

The VBScript works perfectly fine if run once a user is logged on. For example, I logon and run the script manually and it creates the appropriate *.jpg file and places it in %windir%system32\oobe\info\backgrounds and names then according to this so the script does work but just not on startup.

I assume this is something to do with Win7 permissions somehow that XP didn't have. Does Win7 not like running VBScript with knowing which user is running it and determining if it should be allowed?

Anyone know a way around this? Either using the existing VBScript or another way (will PowerShell work better?).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top