ImChiuahua
New member
Hello,
I am trying to switch users on my windows 11 desktop and every time me and another user try to switch between our users, we get an error code saying "the initial user must signout in order for you to sign in".
We are not sure why his is, we have tried disabling hide user entry points for fast user switching. (doesnt work enabled nor disabled, not configured was the default.) we have tried a logon script by creating a .bat file and then using that script in gpedit.msc -> UserConfig -> Scripts -> logon and in the script name field, we added the file path of said script. this method worked on another computer with the same issue but it is not working on this one. can anyone assist with this? or may have any insight as to why this may be happening to only one machine and not the other?
The script we used in the .bat is:
@echo off
for /f "tokens=3" %%a in ('query user %username%') do set sessionid=%%a
logoff %sessionid%
which should end the current user's session and allow another user to sign in without signing out the previous user. this script was effective in 1 pc but not the other.
PS: both PCs are running the build of windows, and both were just reimaged in windows11
I am trying to switch users on my windows 11 desktop and every time me and another user try to switch between our users, we get an error code saying "the initial user must signout in order for you to sign in".
We are not sure why his is, we have tried disabling hide user entry points for fast user switching. (doesnt work enabled nor disabled, not configured was the default.) we have tried a logon script by creating a .bat file and then using that script in gpedit.msc -> UserConfig -> Scripts -> logon and in the script name field, we added the file path of said script. this method worked on another computer with the same issue but it is not working on this one. can anyone assist with this? or may have any insight as to why this may be happening to only one machine and not the other?
The script we used in the .bat is:
@echo off
for /f "tokens=3" %%a in ('query user %username%') do set sessionid=%%a
logoff %sessionid%
which should end the current user's session and allow another user to sign in without signing out the previous user. this script was effective in 1 pc but not the other.
PS: both PCs are running the build of windows, and both were just reimaged in windows11
- Windows Build/Version
- 23H2 OS Build: 22631.4317
My Computer
System One
-
- OS
- windows11