Disable Defender Anti-virus (admin required):
powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $true"
Enable Defender Anti-virus (admin required):
powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $false"
Uptime stats:
net statistics server
Free space on disks (admin required):
fsutil volume diskfree c:
List all available drives:
wmic logicaldisk get name
List installed patches (PowerShell):
Get-WmiObject -Class "win32_quickfixengineering"
List installed software:
wmic product get name,version
Password policy (local):
net accounts
Password policy domain:
net accounts /domain
List OS version and other stats:
systeminfo
List domain controllers:
nltest /dclist:<domain name>
Enumerate logs:
wevtutil el
Filter system logs by most recent ones:
wevtutil qe system /rd:true /c:10 /f:text