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?
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?