red*_*888 8 windows powershell windows-server-2016
Set-MpPreference -DisableRealtimeMonitoring禁用第一个,打开 UI 时禁用其他选项的具体开关是什么?我没有在文档中找到一个明确的例子,我不想运行每个禁用开关,因为 MS 文档很糟糕。
Raz*_*anu 11
经过几个小时的文档:https : //docs.microsoft.com/en-us/powershell/module/defender/index? view = win10- ps
刚刚决定卸载它。这适用于带有 PS 5.1 的 WS 2016。
Remove-WindowsFeature Windows-Defender, Windows-Defender-GUI
Run Code Online (Sandbox Code Playgroud)
下面的内容对我不起作用(来自 2011-2012 年的博客),但在卸载之前试一试:
Get-Service WinDefend | Stop-Service -PassThru | Set-Service -StartupType Disabled
Run Code Online (Sandbox Code Playgroud)
后来编辑:找到了一种适用于 Windows 10 的方法,仅在 20H2 上进行了测试。如果它适用于以前的版本,请添加评论。
Set-MpPreference -DisableRealtimeMonitoring $true
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name DisableAntiSpyware -Value 1 -PropertyType DWORD -Force
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
46063 次 |
| 最近记录: |