New Powershell command Get-PerimeterMessageTrace

  So I want to put this out there, because I googled the crap out to this hand got zero information. When doing an exchange message trace, it was used to see incoming email.  going to have to explore this more, and find out what it really can do.   PS C:\Windows\system32> PS C:\Windows\system32> Get-PerimeterMessageTrace […]


Exchange Powershell Context

I had a frustrating problem, where powershell was not returning the correct results that I was expecting, it was missing a 95% of the data from a simple get-mailbox command. It turns out, that running exchange powershell commands from the “Exchange Management Shell” sets the environment to the local server, even if you use the […]


Show all Domain Computers that are Online

Quickie one liner; get-adcomputer -filter * | Where { Test-Connection $_.name -count 1 -quiet } | Select @{Name=”Computername”;Expression={$_.Name}} Reference : https://www.petri.com/test-network-connectivity-powershell-test-connection-cmdlet


Find all RDP (and Console) Sessions in the Domain

Quickie one liner $work = Get-ADComputer -filter * $work = $work.name foreach ($1 in $work){write-host $1 ; quser /server:$1} This also works (courtesy of jrv [technet]); Get-ADComputer -Filter *| ForEach-Object{ quser /server $_.Name}


Find the OS of all Computers in the Domain

Quickie one liner Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemService Pack,OperatingSystemVersion -Wrap –Auto Reference: https://serverfault.com/questions/585223/how-to-list-all-computers-operating-system-on-a-network-in-powershell


Powershell fun for the System Monitor

So, I like my monitors to do more then just blink.  Also, its good for people to come by and see something happening in IT, as most of the stuff we do is invisible.  I started out this script so I could do functions on ranges of IP’s, and it turned into this fun little […]