Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running vbscript through different credential

Status
Not open for further replies.
Oct 7, 2002
7
US
In windows 2000 Professional,
How can we execute a vbscript or visual Basic code to run/execute on different credentials(Logon credentials)
 
do a search on MS web site for impersonate user, it's the code for a dll that you complie and register on the worksation and it allows you with in the context of avbs or web page for that matter to impersonate another user, I used it to get around the fact that the account our IIS server uses didn't have access to network shares.
 
You can also try SFImpersonator, I use it in lots of my scripts with both MS and Novell resources.

You can go to It's a little ways down on the page. Be sure to read through the sample script and set the correct permissions for the user ID that is running the script, not the user that you want to impersonate. I say that because the most common mistake people make with this com object is to set the needed permissions on the target user, not the user running the script.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top