Windows Shell Cheat Sheet

This is a collection of useful powershell commands

Get the service tag of a dell system (other systems sometimes too)

wmic bios get serialnumber
#run in powershell or cmd

See whos logged into active directory since a date

get-aduser -filter {lastlogondate -gt "10/10/2017"} -Properties lastlogondate | select Name,LastLogonDate | sort name
#run in Powershell
Advertisements