Quick Batch Script to start couple of commands for runas user

 

runas /user:temp "cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd\"

 

C:UsersTestUSR1>runas /user:temp "cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd\"
Enter the password for temp:
Attempting to start cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd as user "TESTPC1temp" …

C:UsersTestUSR1>

Leave a Reply

Your email address will not be published. Required fields are marked *