PowerShell tips – part 001.

Some examples and tips with Windows 10 PowerShell. Most of this maybe will working 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 filter if you want:
Get-Service -Name “Web*”
Get-Service | Out-GridView


born 1976, Falticeni , Suceava , Romania
Posted in All, Commands, PowerShell, Windows 10. Tagged with , , , , , .