B
Brian Nielsen
Hi
I want to use a VB logon script to change the power options for a Windows
2000 workstation, like this script.
---------------------
set WshShell = createobject("wscript.shell")
strPowerScheme = WshShell.RegRead("HKCU\Control
Panel\PowerCfg\CurrentPowerPolicy")
WshShell.Run "PowerCFG /NUMERICAL /CHANGE " & strPowerScheme & "
/standby-timeout-ac 0" , 7
WshShell.Run "PowerCFG /NUMERICAL /CHANGE " & strPowerScheme & "
/standby-timeout-dc 0" , 7
---------------------
But now I've read somewhere that Group policy logon scripts are executed as
the user logging on.
This result is that the user doesn't have permission to execute the script.
Does anyone have an idea of how I can apply these settings to the user
logging on with a GPO, without
having to use "runas" or another tool where I have to hardcode the password?
Thanks in advance
/Brian
I want to use a VB logon script to change the power options for a Windows
2000 workstation, like this script.
---------------------
set WshShell = createobject("wscript.shell")
strPowerScheme = WshShell.RegRead("HKCU\Control
Panel\PowerCfg\CurrentPowerPolicy")
WshShell.Run "PowerCFG /NUMERICAL /CHANGE " & strPowerScheme & "
/standby-timeout-ac 0" , 7
WshShell.Run "PowerCFG /NUMERICAL /CHANGE " & strPowerScheme & "
/standby-timeout-dc 0" , 7
---------------------
But now I've read somewhere that Group policy logon scripts are executed as
the user logging on.
This result is that the user doesn't have permission to execute the script.
Does anyone have an idea of how I can apply these settings to the user
logging on with a GPO, without
having to use "runas" or another tool where I have to hardcode the password?
Thanks in advance
/Brian