Jump to content

How to switch user ?


Exit
 Share

Recommended Posts

No luck in using search for switch user.

I have two user accounts on a Win10 64bit PC and want to easily switch from one user to the other by a desktop Icon.

I found a solution here , but it uses shutdown restart with registry tweaks.

Is there a way to just Logout/Login ? Any ideas ?

I will code myself, but some pointers are welcome. :)

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

_WinAPI_LockWorkStation() can be used instead if #l, but this won't allow you to automate the user login.

A way could be to apply an autologon (with autologon.exe : https://technet.microsoft.com/en-us/library/bb963905.aspx), but it requires a reboot to be effective.

 

Link to comment
Share on other sites

_WinAPI_LockWorkStation() can be used instead if #l, but this won't allow you to automate the user login.

Confirmed. :(

 

A way could be to apply an autologon (with autologon.exe : https://technet.microsoft.com/en-us/library/bb963905.aspx), but it requires a reboot to be effective.

That is the same as my reference in first post.

But I would like to preserve my first session and switch to the other session. And vice versa.
Btw, this would be much faster than rebooting.

Any ideas ?

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • 3 years later...

If you are unable to switch users in windows 10 without restart, you can try command prompt to switch users. I can't say with confidence but may it can help you.
Just open cmd and enter "runas /user:*computer name\*account name explorer.exe" and press enter. It will switch you in your account you entered.

 Source: https://windowsclassroom.com/how-to-switch-users-on-windows-10/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...