runas .. command
Hello !
I have 2 computer's in the same network , and I want to use the runas command from PC1 to open a mmc on PC1 ( controling PC2 ).
Can you tell me the exact structure ? of the command ? how to do this ..
I use from console : runas /? , but I can't figure.. ( computer's are jsut in the same workgroup .. )
I have 2 computer's in the same network , and I want to use the runas command from PC1 to open a mmc on PC1 ( controling PC2 ).
Can you tell me the exact structure ? of the command ? how to do this ..
I use from console : runas /? , but I can't figure.. ( computer's are jsut in the same workgroup .. )
Optimism is an occupational hazard of programming: feedback is the treament. (Kent Beck)
Comments
-
Plantwiz Mod Posts: 5,057 Modhttp://www.computerhope.com/runas.htmSYNTAX
RUNAS [/profile] [/env] [/netonly] /user:<UserName> program
/profile if the user's profile needs to be loaded
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote access only.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples
Examples:
> runas /profile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
EXAMPLES
See Microsoft's above examples for examples of this commandPlantwiz
_____
"Grammar and spelling aren't everything, but this is a forum, not a chat room. You have plenty of time to spell out the word "you", and look just a little bit smarter." by Phaideaux
***I'll add you can Capitalize the word 'I' to show a little respect for yourself too.
'i' before 'e' except after 'c'.... weird? -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□Here's an easier way:
Create a shortcut to MMC on your desktop. Now right click on it and select Run As.
Otherwise try this:
Start
Run
runas /user:sprkymrk mmc.exe
You will be prompted for the password for sprkymrk in a cmd window, then mmc will open.All things are possible, only believe.