# Protection

### Windows Defender Status

```powershell
Get-MpComputerStatus
```

### Language Mode

```powershell
$ExecutionContext.SessionState.LanguageMode
```

### List AppLocker Rules

```powershell
Get-AppLockerPolicy -Effective | select -ExpandProperty RuleCollections
```

Test AppLocker Policy

{% code fullWidth="false" %}

```powershell
Get-AppLockerPolicy -Local | Test-AppLockerPolicy -path C:\Windows\System32\cmd.exe -User Everyone
```

{% endcode %}
