POWER SETTINGS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We are trying to set our tablets to never turn off for all users on a
network. Managed by a GPO that has no power settings in it. Can this be done
administratively? If so how? We have tried using the ntuser.dat file for all
users and the default user and it will not work.
 
Tracy,
You can use a quick vb script during user logon and set
CurrentPowerPolicy = 2 in the HKCU hive. e.g.
-------

Const HKCU = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")

PowerCfgPath = "Control Panel\PowerCfg"
PowerCfgValue = "CurrentPowerPolicy"
PowerCfgData = "2"

objReg.SetStringValue HKCU,PowerCfgPath,PowerCfgValue,PowerCfgData

--------
 
Back
Top