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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to wsshell.run as a user

Status
Not open for further replies.

westmanm

ISP
Oct 14, 2003
29
0
0
US
I've got a batch file that I need to run from a webpage as administrator. The .cmd file works wonderfully when I run it from a command line as admin, but when I set the directory containing the asp file that is going to run the cmd to require authentication and authenticate as admin, it doesn't work. Doing the set command shows that there isn't even a username so I assume that not all of the profile is getting loaded for this user.
Long story short, what I'm trying to do is have PGP run and encrypt a text file when this page is accessed, but PGP is acting stupid since the user isn't configured correctly.

So, how do I get wsshell.run to actually run something as administrator?

Thanks
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top