Im trying to push out some HKCU keys via a login script but am having trouble with any account other than the administrators. I know there are restrictions on HKCU which is why im using the runas command with the administrator account to execute it. The script says that it runs sucessfully but it is writing the keys to the HKEY_USERS\DEFAULT hive instead of HKEY_CURRENT_USER. Ive verified this by checking both locations. I cant figure this out. Here is what im using...
*paste this into a .reg file
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000095
"NoBandCustomize"=dword:00000001
"NoControlPanel"=dword:00000001
"NoViewOnDrive"=dword:03ffffff
"NoPropertiesMyComputer"=dword:00000001
"NoNetHood"=dword:00000001
*paste this into a .cmd file
runas /user:%computername%\administrator "REGEDIT.exe Desktop_Settings.reg"
FYI - ive tried the various switches for the runas command with no luck
HELP!
*paste this into a .reg file
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000095
"NoBandCustomize"=dword:00000001
"NoControlPanel"=dword:00000001
"NoViewOnDrive"=dword:03ffffff
"NoPropertiesMyComputer"=dword:00000001
"NoNetHood"=dword:00000001
*paste this into a .cmd file
runas /user:%computername%\administrator "REGEDIT.exe Desktop_Settings.reg"
FYI - ive tried the various switches for the runas command with no luck
HELP!