Posts

Showing posts from 2022

Create Profiles for Managing Microsoft Exchange using Windows Terminal (Online and On-Prem)

Image
I use Windows Terminal a lot and I wanted to show off how I setup Exchange Management profiles to make my life easier. Enjoy! Exchange Online: In Windows Terminal, go to "Settings" and click "Add a new profile" at the bottom. Give it a name you like, and in the "Command line" field, Paste the following: powershell.exe -NoExit -Command "Import-Module ExchangeOnlineManagement; Connect-ExchangeOnline -UserPrincipalName user@contoso.com"  Make sure to replace the UserPrincipalName property with your own. On-Prem Exchange: In Windows Terminal, go to "Settings" and click "Add a new profile" at the bottom. Give it a name you like, and in the "Command line" field, Paste the following: powershell.exe -NoExit -Command "$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://exchange.domain.com/powershell/; Import-PSSession $Session -DisableNameChecking"  Make sure to replace the Connecti...

IT Tools I Use Everyday

FreeFileSync ( FreeFileSync.org ) Free file sync is a fantastic tool for copying files from one place to another. The ability to pause, and resume the copy is game changing. It also tends to be faster than windows file copy by only copying what's different between your directories and by using features in windows that not even windows file copy uses. I'm only scratching the surface of what this software can do so please go check it out. WizTree ( DiskAnalyzer.com ) WizTree will quickly scan a folder location (yes remote locations as well) and list all the child files & folders by size in a tree format allowing you to quickly and easily see what the largest (and most problematic) files that are on a PC or server. Microsoft PowerToys ( Microsoft.com ) Microsoft PowerToys is a small toolkit that simply makes your Window's experience better. Its always being updated with new features, so defiantly check out the website. I use one or more of the tools in this kit LITERALLY e...

User accounts set to expire

Use the following PowerShell to find User's expiration status & dates. The Attribute: The LDAP attribute we are interested in here is " AccountExpires ". This field contains a time string formatted in NT Epoch time. (See "Accounts that will Expire" below  to convert it.) You can use the following PowerShell to select it: Get-ADUser -Identity "JHeisler"  -Properties ("AccountExpires") Accounts set to "Never" expire: If the  " AccountExpires "  attribute contains " 9223372036854775807 " or " 0 " that indicates that the user's account is set to never expire. Accounts that will expire: If an account is set to expire, (i.e. " AccountExpires " attribute does not contain  " 9223372036854775807 " or " 0 ") We can convert it using w32tm.exe with the /ntte [AccountExpires] argument. See Below: L...