Stop the explorer process completely using PowerShell

Greetings, I am trying to stop the "explorer" process using the power-shell command:

Stop-Process -ProcessName explorer -Force 

the problem is with this line, it will stop the process, but it will start automatically again so that it just restarts the process without stopping it.

Please advise me how to completely stop the "explorer" process using power-shell

Hi,

+7
source share
3 answers

You can do this (although I don't know why you don't want the conductor coming back):

 taskkill /F /IM explorer.exe 
+8
source

Set DWord AutoRestartShell to 0 before you remove Explorer

 PS> Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 PS> Stop-Process -ProcessName explorer -Force 
+6
source

Many years later, but thanks for the quick tip.

just fyi if someone meets this later as i did

In my case, I don't want the explorer to restart automatically, because I want to reload the profile using:

 Start-Process -ProcessName explorer -LoadUserProfile 

OR load a new set of environment variables

 Start-Process -ProcessName explorer -UseNewEnvironment 

Greetings

+1
source

All Articles