I'm trying to run the SharePoint 'stsadm' command using 'runas /user:spsetup "stsadm args...". The user authenticates, and the program runs, but it runs in a new console window which closes immediately upon termination of the 'stsadm' program. What can I do to keep it open?

link|improve this question

50% accept rate
feedback

2 Answers

up vote 2 down vote accepted

runas /user:spsetup "cmd /k echo Hello!"

link|improve this answer
feedback

Open a console window first and type the command there. The console will stay open even after the program has finished.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.