Sometimes when doing mailbox testing it's necessary to actually bloat a mailbox for the purposes of benchmarking the speed of a mailbox move to Office 365, rather than risk sending sensitive data, … [Keep Reading]
Tag: Powershell
PowerShell connectivity to Azure, Exchange Online and Exchange on-premises all-in-one
I use the following function in my PowerShell profile so that I can use the Microsoft Online cmdlets, the Exchange cmdlets against Exchange online and the Exchange cmdlets against on-premises all in … [Keep Reading]
Testing ADFS Federation with Office 365 without DirSync in place
Sometimes, as you are deploying ADFS, DirSync, Hybrid etc… you might decide that you want to test ADFS with your tenant before you have DirSync in place (maybe you're waiting on a … [Keep Reading]
Office 365 Exchange Attribute migration between forests
Back in late 2012 / early 2013 I created a number of documents on advanced identity integration with Office 365 using FIM and the Windows Azure Active Directory (WAAD) Management agent. That … [Keep Reading]
Auto-Licensing script for Office 365
You can use the following script with task scheduler to connect to your tenant via powershell, check for any unlicensed users and apply a license.
It will alert via email when the … [Keep Reading]
NT Account to SID translation …. and back again.
I keep the following nifty functions in my Powershell profile, it helps when working with SIDs and Active Directory, it allows you to easily convert a SID back to the NTACCOUNT … [Keep Reading]
Zipping files older than X days
Recently I was working with a firewall that wrote some tremendously large log files and was eating disk at an alarming rate, so to remedy this, and sharpen my Powershell pencil, … [Keep Reading]
Powershell and Hyper-V Management
There’s an awesome tool on codeplex for managing Hyper-V using Powershell called PSHyperV, it’s especially handy if you’re working with Hyper-V on a Windows Server Core installation.
Just download the … [Keep Reading]
Powershell Remote User Logoff / Reboot
When patching servers, any disconnected user sessions typically prevent the post-patch auto reboot. To remedy this you could use the following Powershell script :
foreach ($_ in get-content servers.txt) {(… [Keep Reading]
Merging and appending to CSV files using Powershell
The time-tested approach of appending data to the end of a file using >> doesn’t necessarily work with CSV files in Powershell, and Out-File with the -append switch typically results in a … [Keep Reading]