Eyl*_*yla 8 powershell windows-7
问候,我正在尝试使用power-shell命令停止"资源管理器"进程:
Stop-Process -ProcessName explorer -Force
Run Code Online (Sandbox Code Playgroud)
该行的问题,它将停止进程但它会自动再次运行,所以它只是重新启动进程而不是停止它.
请建议我如何使用power-shell完全停止"资源管理器"进程
问候,
man*_*lds 11
你可以这样做(虽然我不知道为什么你不想让探险家回来):
taskkill /F /IM explorer.exe
Run Code Online (Sandbox Code Playgroud)
在杀死资源管理器之前将AutoRestartShell DWord值设置为0
PS> Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0
PS> Stop-Process -ProcessName explorer -Force
Run Code Online (Sandbox Code Playgroud)