Skip to content

Commit 6562b97

Browse files
committed
fix(notifs): use AME to kill processes
1 parent c8b696f commit 6562b97

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

src/playbook/Configuration/custom.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ actions:
4646
handleExitCodes: {'!0': halt}
4747

4848
# Prevent annoying notifications during deployment
49-
- !taskKill: {name: 'explorer'}
5049
- !cmd:
5150
command: 'DISABLENOTIFS.cmd'
5251
exeDir: true
5352
wait: true
5453
runas: currentUserElevated
54+
- !taskKill: {name: 'explorer'}
55+
- !taskKill: {name: 'ShellExperienceHost'}
5556
- !run: {exe: 'explorer.exe', runas: 'currentUser', wait: false}
5657

5758
# Configure PowerShell first so that other PowerShell scripts work

src/playbook/Executables/DISABLENOTIFS.cmd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,4 @@ for /f "tokens=5 delims=\" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Ser
2727
sc delete "%%a" > nul
2828
)
2929

30-
:: Apply changes
31-
taskkill /f /im explorer.exe > nul 2>&1
32-
taskkill /f /im ShellExperienceHost.exe > nul 2>&1
33-
timeout /t 3 /nobreak > nul
34-
tasklist | find "explorer.exe" > nul || start explorer.exe
35-
3630
echo Disabled notifications.

src/playbook/Executables/ENABLENOTIFS.cmd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,4 @@ for %%a in (
1919
call "%windir%\AtlasModules\Scripts\setSvc.cmd" "WpnUserService" 2
2020
sc config WpnService start=auto > nul
2121

22-
:: Apply changes
23-
taskkill /f /im explorer.exe > nul 2>&1
24-
taskkill /f /im ShellExperienceHost.exe > nul 2>&1
25-
timeout /t 3 /nobreak > nul
26-
tasklist | find "explorer.exe" > nul || start explorer.exe
27-
2822
echo Enabled notifications.

0 commit comments

Comments
 (0)