cmd admin user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsn
    New Member
    • Sep 2007
    • 237

    cmd admin user

    hello everyone
    i am working on a program which will run the cmd. that part is done. in my program in the Vista OS i can run the normal user cmd. what i need to do is to run the admin cmd so i could be able to run some commands through it.
    i need the command which i enter in the run to run the cmd admin.
    in run i enter cmd and it runs the cormal cmd.
    but i need the command which i need to enter in run to run the admin cmd.

    best regards
    hsn
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    #2
    Hello,

    The "runas" command is what you need......For example if you want to run cmd.exe as user 'Administrator' then following command works for you:
    Code:
    runas /user:Administrator cmd
    To know more, see Microsoft DOS runas command at computerhope.co m. Alternatively, you can also search Google.

    Hope this helps.....
    AmbrNewlearner

    Comment

    • hsn
      New Member
      • Sep 2007
      • 237

      #3
      Originally posted by ambrnewlearner
      Hello,

      The "runas" command is what you need......For example if you want to run cmd.exe as user 'Administrator' then following command works for you:
      Code:
      runas /user:Administrator cmd
      To know more, see Microsoft DOS runas command at computerhope.co m. Alternatively, you can also search Google.

      Hope this helps.....
      AmbrNewlearner
      thanks for your reply.
      i know about the runas command the problem is that when i do it it asks me for a password and when i enter my user account password and the cmd does not accept it. for some reason. i need to nkow what should i do. i keep searching online and everyone is saying to use the runas command but the password issue is blocking my way.

      regards
      hsn

      Comment

      • AmberJain
        Recognized Expert Contributor
        • Jan 2008
        • 922

        #4
        Hello,
        Originally posted by hsn
        thanks for your reply.
        i know about the runas command the problem is that when i do it it asks me for a password and when i enter my user account password and the cmd does not accept it. for some reason. i need to nkow what should i do. i keep searching online and everyone is saying to use the runas command but the password issue is blocking my way.

        regards
        hsn
        Well, then you are (probably) entering the wrong password for the account. I cannot think of any other possibility in this case. Are you sure that you are entering the right password. Also, if the account has no password then this will not work. If you try to use this command with a account that has no password then you get following error message:
        Originally posted by runas error message in XP
        RUNAS ERROR: Unable to run - [Application_nam e]
        1327: Logon failure: user account restriction. Possible reasons are blank passw
        ords not allowed, logon hour restrictions, or a policy restriction has been enfo
        rced.
        So if there is a blank password then you either need to set up a password for that account or you need some other command (which I cannot think of at the present moment......pro bably, some other expert may help)

        Hope this helps........
        AmbrNewlearner

        Comment

        • hsn
          New Member
          • Sep 2007
          • 237

          #5
          Originally posted by ambrnewlearner
          Hello,

          Well, then you are (probably) entering the wrong password for the account. I cannot think of any other possibility in this case. Are you sure that you are entering the right password. Also, if the account has no password then this will not work. If you try to use this command with a account that has no password then you get following error message:


          So if there is a blank password then you either need to set up a password for that account or you need some other command (which I cannot think of at the present moment......pro bably, some other expert may help)

          Hope this helps........
          AmbrNewlearner
          thanks for your reply. yes i am sure i am entering the right command, i have spent more than a week working on this issue. i tried other computers. and the same issue. one of the computer its password is "dog" how could i miss writing that for more than a week.
          your reply is similar to the other replies i read in other websites. i don't get why the computer is not taking the password. i am the admin it should accept my password, but for some reason it is not.
          i am using a windows vista os. could that be a reason for this problem. as everyone knows VISTA SUCKS, after this problem which i am facing i am re-installing XP to my computer.

          best regards
          hsn

          Comment

          • DonRayner
            Recognized Expert Contributor
            • Sep 2008
            • 489

            #6
            If the computer is a member of a domain you can try using the domain administrator password, as in.

            User ..........YourD omainName\admin istrator
            passowrd....pas sword

            Comment

            • hsn
              New Member
              • Sep 2007
              • 237

              #7
              Originally posted by DonRayner
              If the computer is a member of a domain you can try using the domain administrator password, as in.

              User ..........YourD omainName\admin istrator
              passowrd....pas sword
              sadly i can't test that. my computer is not a member of a domain.

              Comment

              • AmberJain
                Recognized Expert Contributor
                • Jan 2008
                • 922

                #8
                Hello,
                Originally posted by hsn
                your reply is similar to the other replies i read in other websites. i don't get why the computer is not taking the password. i am the admin it should accept my password, but for some reason it is not.
                i am using a windows vista os. could that be a reason for this problem. as everyone knows VISTA SUCKS, after this problem which i am facing i am re-installing XP to my computer.
                The problem may be caused by User account control feature of Vista. You can try disabling it but I (and Microsoft too) do not recommend this. For more visit this link.

                Hope this helps.......

                Comment

                Working...