View Single Post
Old 02-12-2008, 01:02 AM   #2 (permalink)
Knuds
Registered User
 
Join Date: Feb 2008
Location: Denmark
Posts: 1
OS: XP sp2


Wink Re: Setting permanent Environment Variables via VBscript or GPO xp/vista?

UAC in Vista - therfor you vbs wil not function correctly.

User Account Control og Vista will runs vbs scripts without administrative privileges.

You can disable this Vista security with a vbs script or set it in GPO but only with a 2008 servier or a Vista maschine in the same domain.

Her you have the vbs script.

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\EnableLUA","0","REG_DWORD"

You can also make this change directly in regedit and set this key EnableLUA to 0.

I hope this will help you.

Knud Schrøder
Systemadmin

;o)
Knuds is offline   Reply With Quote