PowerShell tips – part 001.

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 -Name “Web*”
Get-Service | Out-GridView

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.