PowerShell is one of Windows’ command-line utilities that is now a notable alternative to the Command Prompt. Users can utilize PowerShell to check the status of Windows Defender, which is Windows 10’s built-in anti-virus utility. Get-MpComputerStatus is a PowerShell cmdlet that provides users with a Windows Defender status overview.
That’s what it basically is. But if you are keen to learn how to utilize it and how to enable Windows Defender fully, we made sure to explain it below.
How to Check Windows Defender’s Status With Get-MpComputerStatus
- So, why not check the status of Windows Defender with the Get-MpComputerStatus cmdlet? To do so, open the search box with the Windows key + S hotkey.
- Input ‘PowerShell’ in the Type here to search box.
- Right-click Windows PowerShell and select its Run as administrator option.
- Input the ‘Get-MpComputerStatus’ cmdlet in PowerShell and press Return. PowerShell will then display a list of Windows Defender properties as shown directly below.
- AntispywareEnabled, AntivirusEnabled, IoavProtectionEnabled, NISEnabled, OnAccessProtectionEnabled, and RealTimeProtectionEnabled are the properties that highlight if Windows Defender is enabled or not. Windows Defender has fully enabled if all those properties have a true value.
How to Enable Windows Defender
- If Get-MpComputerStatus highlights that Windows Defender is not enabled, users can enable WD via Settings. However, some users might need to uninstall third-party antivirus software first as those utilities automatically disable Windows Defender by default.
- To turn Windows Defender on, open the Type here to search box.
- Input ‘Windows Defender’ in the search box.
- Then select Windows Defender settings to open the window shown directly below.
- Click Virus & threat protection to open the options shown below.
- Then click Virus & threat protection > Manage settings to open the Real-time protection option.
- Toggle the Real-time protection option on to enable Windows Defender.
So, users can get a quick Windows Defender status overview with the Get-MpComputerStatus cmdlet. There are also lots more Windows Defender cmdlets users can utilize in PowerShell.
RELATED ARTICLES TO CHECK OUT:
- Microsoft PowerShell 7 coming to all platforms in May
- What’s Windows Defender summary and how to disable it?