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 […]
Category: Command
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 […]
Close Telnet Command Window
Use CTRL and ] to close a successful Telnet window. I often use “telnet server ####” to check if the port is open between servers, but can never remember how to close the connection if it works. this is my reminder 🙂
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
Convert LDAP Time
This is the reference and an online converter. EpochConverter.com The 18-digit Active Directory timestamps, also named ‘Windows NT time format’,’Win32 FILETIME or SYSTEMTIME’ or NTFS file time. These are used in Microsoft Active Directory for pwdLastSet, accountExpires, LastLogon, LastLogonTimestamp and LastPwdSet. The timestamp is the number of 100-nanoseconds intervals (1 nanosecond = one billionth of […]