Kill and restart explorer.exe

BatchPatch Forums Home Forums BatchPatch Support Forum Kill and restart explorer.exe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13424
    samskrillz
    Participant

    Hello,

    I would like to deploy a little batch script that modify 3 reg for windows 11.

    The script work well when launched manually, but when I launch it with BatchPatch, explorer.exe it’s correctly killed, but it never goes back…

    This is my script ;
    @echo off

    REG ADD “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced” /V TaskbarSi /T REG_DWORD /D 0 /F
    REG ADD “HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32” /f
    REG ADD “HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32” /f /ve
    taskkill /f /im explorer.exe
    start explorer.exe

    I don’t know why the batch file only kill the explorer but never start it again… If you have any idea about why, it would be very appreciate ! Thanks

    #13425
    doug
    Moderator

    Go to ‘Tools > Settings > Remote Execution > Remote Execution Context > Deployment’ and change it to ‘Elevated token’ + ‘Interactive’.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.