|
-
Oct 7th, 2002, 06:19 AM
#1
Thread Starter
New Member
Can I run a vbs script as another user (local admin)
How do I add username and password information to a vbs script
if the normal login does not provide admin access?
It's a vbs script in a .bat file. So the answer may be in batch format or in vbs format.
I wanna write in the HKLM during logon.
A code sample would be helpful
-
Oct 7th, 2002, 06:30 AM
#2
Quite simply - you can't!
VBScript is a cut down scripting language & is permanatley restricted from doing this. You need to use normal vb, and play with the API for this type of thing.
I'm not sure about the batch files side - whether they will have access or not...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|