From bdd8a8f3519a58ad2725b102c10f17c1b6bcaf5a Mon Sep 17 00:00:00 2001 From: slore Date: Sun, 3 Nov 2024 23:38:57 +0800 Subject: [PATCH] update the account check --- .../WIN10XPE/01-Components/00-Shell/_CustomDesktopItems.bat | 2 +- .../01-Components/00-Shell/za-StartMenu/StartIsBack/last.bat | 2 +- Projects/WIN10XPE/01-Components/02-Network/_networklist.bat | 2 +- .../PEMaterial/Autoruns/Startup/BeforeShell/Shortcuts.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Projects/WIN10XPE/01-Components/00-Shell/_CustomDesktopItems.bat b/Projects/WIN10XPE/01-Components/00-Shell/_CustomDesktopItems.bat index e54d2f8..22f8180 100644 --- a/Projects/WIN10XPE/01-Components/00-Shell/_CustomDesktopItems.bat +++ b/Projects/WIN10XPE/01-Components/00-Shell/_CustomDesktopItems.bat @@ -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= diff --git a/Projects/WIN10XPE/01-Components/00-Shell/za-StartMenu/StartIsBack/last.bat b/Projects/WIN10XPE/01-Components/00-Shell/za-StartMenu/StartIsBack/last.bat index 67990f4..53260e3 100644 --- a/Projects/WIN10XPE/01-Components/00-Shell/za-StartMenu/StartIsBack/last.bat +++ b/Projects/WIN10XPE/01-Components/00-Shell/za-StartMenu/StartIsBack/last.bat @@ -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" ) diff --git a/Projects/WIN10XPE/01-Components/02-Network/_networklist.bat b/Projects/WIN10XPE/01-Components/02-Network/_networklist.bat index 85a7d0a..e08fc3c 100644 --- a/Projects/WIN10XPE/01-Components/02-Network/_networklist.bat +++ b/Projects/WIN10XPE/01-Components/02-Network/_networklist.bat @@ -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 diff --git a/Projects/WIN10XPE/_CustomFiles_/PEMaterial/Autoruns/Startup/BeforeShell/Shortcuts.lua b/Projects/WIN10XPE/_CustomFiles_/PEMaterial/Autoruns/Startup/BeforeShell/Shortcuts.lua index 54cd39e..a2a571b 100644 --- a/Projects/WIN10XPE/_CustomFiles_/PEMaterial/Autoruns/Startup/BeforeShell/Shortcuts.lua +++ b/Projects/WIN10XPE/_CustomFiles_/PEMaterial/Autoruns/Startup/BeforeShell/Shortcuts.lua @@ -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