Help - Search - Members - Calendar
Full Version: Runas
BleepingComputer.com > Operating Systems > Windows NT/2000/2003
   
RandomUser
I'm having trouble using the "RunAs" command from cmdexe. The Shortcut works fine. I also believe the syntax to be correct. I'm leaving and example of the issues i'm running into. If anyone could help, it would be much appreciated.

RunAs Syntax

runas /user:LocalAdminAccount\ComputerName "secpol.msc" [Enter]
Enter the password for this user: !enter password with nothing showing. [Enter]

Error, user name invalid or password incorrect.


There it is folks. And I know for certain the user exists. I created it on my own. and the password was checked for integrity.

Any Help? crazy.gif
Cyclica
Try this:

runas /User:ComputerName\UserName secpol.msc

You could also need to add the /noprofile switch.
RandomUser
Ok I'll try it with the No Profile switch. and let ya know
RandomUser
I took your advice and was returned the error:

Secpol.msc is not a valid win32 application.

That hardly seems correct. I understand the fundamental meaning, but what can I do to get it to Run?
Cyclica
You need to invoke the Microsoft Management Console. Try this:
runas /User:ComputerName\UserName "mmc %windir%\system32\secpol.msc"

Here is a guide to MMC if you need further information:

http://www.microsoft.com/technet/prodtechn...o/mmcsteps.mspx
RandomUser
Cyclia, I tried your method and it worked on the very first try.

I fell back in my chai and shouted, "Money" ! Thank you for all your help.

P.S.

what exactly is happening when I insert the "mmc" line? Is that simply requesting the services of mmc?

Won't be replying to this thread again, just wanted to know that lil tidbit. Thanks again! thumbup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.