runas .. command

!30!30 Member Posts: 356
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 .. icon_rolleyes.gif

I use from console : runas /? , but I can't figure.. icon_mad.gif ( computer's are jsut in the same workgroup .. )
Optimism is an occupational hazard of programming: feedback is the treament. (Kent Beck)

Comments

  • PlantwizPlantwiz Mod Posts: 5,057 Mod
    http://www.computerhope.com/runas.htm
    SYNTAX

    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 command
    Plantwiz
    _____
    "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?
  • sprkymrksprkymrk 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. icon_cool.gif

    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.
Sign In or Register to comment.