Useful Powershell Commands
View all ports in use Get-NetTCPConnection | ? {$_.State -eq “Listen”} | sort LocalPort -Descending
A blog about curiosity being a good habit
View all ports in use Get-NetTCPConnection | ? {$_.State -eq “Listen”} | sort LocalPort -Descending
Here are a couple handy powershell command line scripts to get lists of computers: Get list of virtual machines on a Hyper-V: get-cm > machines.csv Get list of all machines in an Active Directory (second one is delimited): First, install the AD module in powershell: Import-module ActiveDirectory Then: Get-ADComputer -Filter * -Property * | Format-Table… Continue reading Get list of hyper-vs and computers in windows active directory