The command “ Get-Command -Module Defender” has no output


New Member
I need to disable Windows defender in an old build of Windows 10 (en_windows_10_pro_10240_x64_dvd) without activating windows update,
The problem I'm facing is that the usual powershell commands to do that don't work, the command Get-Command -Module Defender has no output!
output of $PSVersionTable.PSVersion:
Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10240  16384


Thành viên BQT
It looks like the Defender module is not installed then. You can try disable it using the registry. Run this as Administrator. The computer needs to be restarted for the new setting to take effect:
$regpath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender"
if (!(Test-Path $regpath -PathType Container)) {
    New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft" -Name 'Windows Defender' -ItemType Container | Out-Null
Set-ItemProperty -Path $regpath -Name "DisableAntiSpyware" -Value 1 -Type DWord
You can enable Defender later bu using
Set-ItemProperty -Path $regpath -Name "DisableAntiSpyware" -Value 0 -Type DWord

Từ khóa phổ biến

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.