My Snippet Cheatsheet

Quick reference for commands, configs, and notes I keep looking up.

PowerShell

Get last reboot time on a remote server

$cn = @('computerName1','computerName2')
$cn | Get-CimInstance Win32_OperatingSystem | Select-Object CSName, LastBootUpTime, LocalDateTime
#powershell #cim #windows