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

escalating authority

Status
Not open for further replies.

WhiteWiz

MIS
Jan 29, 2001
113
CA
i have tried to use this in a logon script

set Ad1=type \\pdc\Secret$\secret.txt
set Ad2=runas /user:elvis@graceland

%Ad1%| %Ad2% "do something that requires elvis privilage"

this gives me RUNAS ERROR:unable to accept input the process tried to write to a nonexistant pipe.

am i piping wrong?
anyone have a better solution to escalate privilage?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top