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.