I had this very problem last week trying to connect to ADU&C in another domain. 
 This command line finally worked for me.

C:\Windows\System32\runas.exe /netonly /user:domain\userid "mmc dsa.msc 
/server=servername.domainname

Shauna Hensala




> From: [email protected]
> To: [email protected]
> Subject: RE: UAC - can't run as another user from the command line
> Date: Tue, 5 Jul 2011 17:58:20 +0000
> 
> You're running these directly from the cmd line?
> 
> Are you able to get a simpler version to work?
> Runas /user:[email protected] cmd.exe
> 
> -----Original Message-----
> From: Kurt Buff [mailto:[email protected]] 
> Sent: Tuesday, July 05, 2011 12:40 PM
> To: NT System Admin Issues
> Subject: UAC - can't run as another user from the command line
> 
> This is weird.
> 
> I was handed a newer laptop, and copied over my list of RUNAS command lines, 
> and they're no longer working.
> 
> Whether I try them from the Start/Run prompt, or from a CMD shell (elevated 
> or not - different user or not), I can't get them to run.
> Inside the CMD shells, I get:
> 
>      C:\Windows\system32>runas /noprofile /env /user:[email protected] 
> "mmc.exe %systemroot%\system32\dsa.msc"
>      Enter the password for [email protected]:
>      Attempting to start mmc.exe C:\Windows\system32\dsa.msc as user 
> "[email protected]" ...
>      RUNAS ERROR: Unable to run - mmc.exe C:\Windows\system32\dsa.msc
>      740: The requested operation requires elevation.
> 
> I've googled myself stupid on this one, and the only thing I've found is to 
> use gpedit.msc and make sure that
> 
>      "User Account Control: Behavior of the elevation prompt for 
> administrators in Admin Approval Mode"
> 
> is set to "Prompt for credentials"
> 
> Which it is. So also is:
> 
>      "User Account Control: Behavior of the elevation prompt for standard 
> users"
> 
> I've even tried just running:
> 
>      C:\Windows\system32>runas /noprofile /env /user:[email protected] 
> "mmc.exe"
>      Enter the password for [email protected]:
>      Attempting to start mmc.exe as user "[email protected]" ...
>      RUNAS ERROR: Unable to run - mmc.exe
>      740: The requested operation requires elevation.
> 
> with, as you can see, no luck.
> 
> Anyone have a clue what I'm doing wrong?
> 
> Thanks,
> 
> Kurt
> 
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ 
> <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
> 
> ---
> To manage subscriptions click here: 
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
> 
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
> 
> ---
> To manage subscriptions click here: 
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
                                          
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to