Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Command to log in, so I can run it from psexec. Net Use?  (Read 6622 times)

0 Members and 1 Guest are viewing this topic.

indigoataxia

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 7
    Command to log in, so I can run it from psexec. Net Use?
    « on: March 25, 2014, 08:02:51 PM »
    Is there a command I can run remotely through PSEXEC to log in machines? The scenario is, for testing I need to log 80 computers into a testing account. So my script would be, for rough example

    FOR /F "tokens=1" %%G IN (computerlist.txt) DO psexec.exe \\%%G "Command to Log In".

    Right now I am running to each computer and logging in, typing in credentials 80 times, and hoping there is a better way. I tried to google, and saw a few posts mention Net Use, but nothing specific to what I'm looking for. Appreciate help :)

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Command to log in, so I can run it from psexec. Net Use?
    « Reply #1 on: March 26, 2014, 06:37:00 AM »
    If you can access the computer with psexec you are logged into the computer.

    indigoataxia

      Topic Starter


      Rookie

      • Experience: Experienced
      • OS: Windows 7
      Re: Command to log in, so I can run it from psexec. Net Use?
      « Reply #2 on: March 26, 2014, 06:55:00 AM »
      I mean I need the computer logged into an account. So from the Ctrl+Alt+Delete Screen, I need a command that will log it into a domain account. I want to save myself from having to press ctrl+alt+delete, type in username, and type in password, to log the computer in and bring up the desktop on 80 computers.

      Squashman



        Specialist
      • Thanked: 134
      • Experience: Experienced
      • OS: Other
      Re: Command to log in, so I can run it from psexec. Net Use?
      « Reply #3 on: March 26, 2014, 07:22:44 AM »
      So you want all the computers to Auto Login when they turn on.  You have to change settings on each computer to do that.  There are plenty of tutorials on the web to have a computer auto login when you turn it on.  Depending on whether these are standalone computers or joined to a domain the procedure is slightly different.
      http://www.youtube.com/watch?v=erEdQ_wuuAM
      http://www.mydigitallife.info/how-to-enable-auto-logon-to-windows-xp-and-vista-joined-as-domain-member/

      indigoataxia

        Topic Starter


        Rookie

        • Experience: Experienced
        • OS: Windows 7
        Re: Command to log in, so I can run it from psexec. Net Use?
        « Reply #4 on: March 26, 2014, 09:14:11 AM »
        Well, yes, autologin would work. But I need it just for one morning and it will be more trouble to set them all up and then delete the setting then just logging them in manually.

        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Command to log in, so I can run it from psexec. Net Use?
        « Reply #5 on: March 26, 2014, 09:29:06 AM »
        Then no, you cannot accomplish what you are trying to do as far as I know.

        indigoataxia

          Topic Starter


          Rookie

          • Experience: Experienced
          • OS: Windows 7
          Re: Command to log in, so I can run it from psexec. Net Use?
          « Reply #6 on: March 26, 2014, 09:30:50 AM »
          Great, thanks for the reply.

          indigoataxia

            Topic Starter


            Rookie

            • Experience: Experienced
            • OS: Windows 7
            Re: Command to log in, so I can run it from psexec. Net Use?
            « Reply #7 on: March 27, 2014, 11:42:15 AM »
            I thought about it and decided I could use a GPO to force an auto log in for that morning, and then disable the GPO afterwords so they can log in as normal again.

            indigoataxia

              Topic Starter


              Rookie

              • Experience: Experienced
              • OS: Windows 7
              Re: Command to log in, so I can run it from psexec. Net Use?
              « Reply #8 on: March 28, 2014, 11:45:52 AM »
              EDIT: Well that GPO permanently updates the registry to log in, and disabling the GPO doesn't revert. So then I would need another GPO to delete the keys and make sure they all got it. So thats a lot more work then I wanted. I'll keep on the hunt.

              indigoataxia

                Topic Starter


                Rookie

                • Experience: Experienced
                • OS: Windows 7
                Re: Command to log in, so I can run it from psexec. Net Use?
                « Reply #9 on: April 04, 2014, 09:49:01 AM »
                Last EDIT: Decided to just use the GPO and check in the Custom tab to 'Remove this item when it is no longer applied'.