Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Runas


  • Please log in to reply
5 replies to this topic

#1 RandomUser

RandomUser

  • Members
  • 518 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:25 PM

Posted 06 February 2006 - 09:15 PM

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? :thumbsup:

BC AdBot (Login to Remove)

 


#2 Cyclica

Cyclica

  • Members
  • 87 posts
  • OFFLINE
  •  
  • Local time:07:25 PM

Posted 06 February 2006 - 10:22 PM

Try this:

runas /User:ComputerName\UserName secpol.msc

You could also need to add the /noprofile switch.

#3 RandomUser

RandomUser
  • Topic Starter

  • Members
  • 518 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:25 PM

Posted 07 February 2006 - 12:21 AM

Ok I'll try it with the No Profile switch. and let ya know

#4 RandomUser

RandomUser
  • Topic Starter

  • Members
  • 518 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:25 PM

Posted 07 February 2006 - 01:07 AM

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?

#5 Cyclica

Cyclica

  • Members
  • 87 posts
  • OFFLINE
  •  
  • Local time:07:25 PM

Posted 07 February 2006 - 01:46 PM

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

#6 RandomUser

RandomUser
  • Topic Starter

  • Members
  • 518 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:25 PM

Posted 07 February 2006 - 03:24 PM

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! :thumbsup:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users