Some examples and tips with Windows 10 PowerShell. Most of this maybe will work with old versions of Windows but I tested just with Windows 10.
Let’s start:
See the indication of a denial of service (DoS) attack:
netstat -ant | Select-String “SYN_RECEIVED”
Last boot uptime:
(get-date) – (gcim Win32_OperatingSystem).LastBootUpTime
Scan one for threats/malwares (if the scan run then will got one error) :
Start-MpScan -ScanType [QuickScan/FullScan/CustomScan] -ScanPath “C:”
List all drives:
get-psdrive –psprovider filesystem
Make one list of Windows Services and use the filter if you want:
Get-Service
Get-Service -Name “Web*”
Get-Service | Out-GridView