update the account check

This commit is contained in:
slore 2024-11-03 23:38:57 +08:00
parent afe4adbc74
commit bdd8a8f351
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ call LinkToDesktop "#{@shell32.dll,22022}.lnk" cmd.exe
set _SU_ICON=319
if %VER[3]% GEQ 20251 set _SU_ICON=320
if exist "%X_SYS%\seclogon.dll" (
if exist "%X_SYS%\tsdiscon.exe" (
call LinkToDesktop -paramlist "#{@shutdownux.dll,3052}.lnk" "'SwitchUser.bat', '', 'imageres.dll', %_SU_ICON%"
)
set _SU_ICON=

View File

@ -3,7 +3,7 @@ if "x%opt[shell.startmenu]%"=="xStartAllBack" (
)
rem incompatible with StartIsBack(SYSTEM account)
if not exist "%X_SYS%\seclogon.dll" (
if not exist "%X_SYS%\tsdiscon.exe" (
del /q "%X_SYS%\windows.immersiveshell.serviceprovider.dll"
)

View File

@ -13,7 +13,7 @@ ImplatSetup.dll,netprofm.dll,netprofmsvc.dll,npmproxy.dll,pnidui.dll
rem // NetworkSetup2 and NetworkUxManager
if exist "%X_SYS%\seclogon.dll" (
if exist "%X_SYS%\tsdiscon.exe" (
call RegCopy HKLM\System\ControlSet001\Control\NetworkSetup2
) else (
call RegCopy HKLM\System\ControlSet001\Control\NetworkSetup2\Filters

View File

@ -13,7 +13,7 @@
-- LINK('%Desktop%\\Internet Explorer.lnk', '%ProgramFiles%\\Internet Explorer\\iexplore.exe')
-- if File.exists('X:\\Windows\\System32\\seclogon.dll') then
-- if File.exists('X:\\Windows\\System32\\tsdiscon.exe') then
-- LINK('%Desktop%\\#{@shutdownux.dll,3052}.lnk', 'X:\\Windows\\System32\\SwitchUser.bat', '', 'imageres.dll', 319)
-- end