Skip to content

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”
Terminal window
[DateTime]::Today
Terminal window
query user /server:$SERVER
Terminal window
logoff <session ID>
Terminal window
Import-Module -Name .\module.psd1 -Force
Terminal window
$String | ConvertFrom-Json | ConvertTo-Json -Depth 100
Terminal window
[Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($String))
Terminal window
[System.Convert]::ToBoolean($String)
Terminal window
[System.Net.Dns]::GetHostByName($FQDN)