How to autologon to windows

I have enabled admin sharing in the remote machine so that I can copy files to the remote machine use PSEXEC to execute our application remotely.

Now, if the machine is poweredoff we need to poweriton.
So I checked whether the remote machine, it is of both VirtualBox or VMWare one.
For VirtualBox or VMware, I have found command line utities to poweron.

But to autologon by skipping the login screen.Can anyone suggest how to do the same.If it is a physical machine, then there is no need to poweron but autologon is required.

I am trying for windows machines.Win 7 at present.

For VirtualBox I checked below link with help og guestadditions but not working.

The below procedure will save the password in that machine and it will logon automatically.


But it will give access to everyne.But my opinion is he should access only if have credentias.I mean through any commandline from another machine he should trigger logon also by passing credentials.

Similarly this also






Please guide me how to proceed.

6 Comments   [ + ] Show comments
  • I'm not sure what you are trying to accomplish. You want the machine to auto login but not be accessible? - chucksteel 7 years ago
    • lols, I'm pretty confused as well. - rileyz 7 years ago
  • I want to login to the remote machine through my current machine through any command like we use psexec to start launch an app on that machine.

    Along with such command I will pass credentials along with the machine name.Then only it should be accessed.

    But in the links I provided, the credentials are being saved on that remote machine registries and any user can access that.

    But I want to make it accessbile remotely only to the user who will provide the machine credentials. - ur00361883 7 years ago
    • Yes, if you setup autologin it will login to the console machine with those credentials. You should be using Remote Desktop to connect to the machine if you need GUI access. - chucksteel 7 years ago
      • Not GUI access, I am wrting a script which will do all the configurations to the machine, that is through PSEXEC.

        After that I want the machine to login autmatically if I provide same credentials using my script(with autologin registry it is able to login without credentials). If the user don't have credentials, it should not be loggedin.

        Can we do like that? - ur00361883 7 years ago
      • You can't login automatically and require the user to have credentials. That is the entire point of having them login to the computer. If you want the computer to login just once you could use a script that would set the autologin credentials and then have another script that deletes those registry keys once the login is complete. - chucksteel 7 years ago
  • But it requires a reboot after adding registries to autologin - ur00361883 7 years ago
  • Is there anyway to login without saving the credentials on that machine. - ur00361883 7 years ago
  • Hi @chucksteel

    Present I am adding the registries through PSEXEC without logging into machine.
    After saving the credentials I need to reboot the machine to autologin.

    Is there anyway to skip the reboot process like just restarting a service.?? - ur00361883 7 years ago
  • If the script you a using is silent (has no user interaction) whats the faff? you provide user creds to psexec? - wynnem 7 years ago
    • Please read the post completely - ur00361883 7 years ago

Answers (0)

Be the first to answer this question

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ