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\W indows NT\CurrentVersion\Winlogon \DefaultUs erName"
"HKLM\SOFTWARE\Microsoft\W indows NT\CurrentVersion\Winlogon \DefaultPa ssword"
"HKLM\SOFTWARE\Microsoft\W indows NT\CurrentVersion\Winlogon \AutoAdmin Logon"
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
"HKLM\SOFTWARE\Microsoft\W
"HKLM\SOFTWARE\Microsoft\W
"HKLM\SOFTWARE\Microsoft\W
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
ASKER
Please Delete This Question
Why? I did answer it...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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