Skip to main content

PowerShell

Commands

Reset-computermachinepassword
Test-ComputerSecureChannel -Repair
Test-NetConnection [Destination] -Port XXXX
test-connection -quiet

$listener = [System.Net.Sockets.TcpListener]5666
$listener.Start();
$listener.Stop();

Get-ADUser -Identity evetsleep

get-member



Set-ExecutionPolicy -ExecutionPolicy ...

invoke-command -computername machine1, machine2 -filepath c:\Script\script.ps1

wuauclt /reportnow (cmd)

dir /s/b C:\ | find /i ".exe"

Get-Hotfix

ConvertTo-CSV

ConvertTo-JSON