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?


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


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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