PowerShell
Get today’s date and time where time is set to midnight
Section titled “Get today’s date and time where time is set to midnight”[DateTime]::TodayShow list of logged on users
Section titled “Show list of logged on users”query user /server:$SERVERLog off user by specifying session ID
Section titled “Log off user by specifying session ID”logoff <session ID>Reload a local module
Section titled “Reload a local module”Import-Module -Name .\module.psd1 -ForcePretty-print minified JSON
Section titled “Pretty-print minified JSON”$String | ConvertFrom-Json | ConvertTo-Json -Depth 100Convert from Base64
Section titled “Convert from Base64”[Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($String))Convert string to boolean
Section titled “Convert string to boolean”[System.Convert]::ToBoolean($String)Resolve FQDN
Section titled “Resolve FQDN”[System.Net.Dns]::GetHostByName($FQDN)