Link to home
Start Free TrialLog in
Avatar of Fubyou
Fubyou

asked on

logon script accessing HKLM with only user rights

I have this vbscript that changes or creates these three regestry entries

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName"

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword"

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon"

well the HKLM i guess cannot be written to if your just in user mode. This script is a logon script. Is there anyway to get elevated privileges to run this script when the user logs on. I need it to automatically do it. I know I can logon in as a local admin and set it but thats not what I want to do.

thanks
Avatar of shtson
shtson
Flag of Israel image

Hai2u,

If you have a domain network, you can have a login script directly from the domains sysvol - that script runs with domain admin priviliges.

Cheers,
Shai
Avatar of Fubyou
Fubyou

ASKER

Please Delete This Question
Why? I did answer it...
Avatar of Fubyou

ASKER

The script is allready there. It doeasn't work. When the user logs in that account doesn't allow anything to be written to HKLM. So I figured out a way for the script to have the same disired effects but it changes a part of the registry that can be modified by the current user's account.
ASKER CERTIFIED SOLUTION
Avatar of ee_ai_construct
ee_ai_construct
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial