Unable to locate runas process
Hello, I am trying to run a few batch files to add a AD group to the local administrator group on a few machines and I am running into the message "unable to locate runas process." I've run these same batch files on windows XP 32-bit machines and they run fine. It seems to not work on 64-bit machines, XP and 7. This issue is not urgent but would help me out a bunch. Thanks in advance.
August 12th, 2010 11:20pm

Hi, Please check the batch files since it fails on several operating systems. It is recommended to submit a new question in Scripting Forums for the batch files. Also, you may temporary turn off UAC to test this issue. Turn off UAC (use MSCONFIG) ========================== 1. Click Start. Type MSCONFIG in the Start Search bar and press Enter. Note: If UAC window prompts for permission to continue, please click Continue. 2. Click Tools. 3. Highlight Disable UAC, click Launch. 4. Restart the computer and test the issue again. Note: If you turn on UAC, please launch Enable UAC. If it works, this can be a workaround since this will lead to security issues. We still suggest checking the batch files since this should be the root of the issue. Regards, Sabrina Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 10:50am

I ran some tests on my batch file and I think my error is related using sanur.exe. I don't believe it works with Windows 7. I tried running a test batch to troubleshoot the issue. I started with a simple runas statement runas /user:administrator "C:\Users\%username%\Desktop\test.cmd". This statement works. Its when I add the sanur part at the end like I did for XP that it returns the error "Unable to locate a runas process". The sanur syntax is as follows: runas /user:administrator "C:\Users\%username%\Desktop\test.cmd | sanur password". The reason I use the sanur program is so I can run the batch file as an administrator on a local machine without having to type the password every time. Do you know of any sanur like programs that work for Windows 7?
August 23rd, 2010 4:25pm

Old question here but I'm having the same issue. I get the same error message when using sanur.exe to pipe in a password. If anyone knows of a way to pipe in a password to a Windows 7 "runas" command line, please reply! Thanks
Free Windows Admin Tool Kit Click here and download it now
December 19th, 2012 6:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics