I’ve been using MessageOps Exchange Migrator for a while now and while it is an amzing product, it isn’t without its quirks. Here are some I came across whilst migrating a small org (80 users) to Office365
Make sure that the account you’re migrating isn’t disabled. If it is disabled, it doesn’t show up in the source mailbox list.
Ensure the mailbox isn’t hidden from the GAL. If it is, the migration will fail with a MAIL_E_NAMEN error and then WSAECONNRESET.
Ensure you have proper rights on the mailbox you are migrating from.
Ensure the mailbox you are migrating to has an Exchange license assigned. This can be E1, E2, E3, whatever.
If you change change any permissions or disable/enable accounts, hit back in the tool and let it rescan everything. This saves you restarting the app and having to type all your credentials again.
When setting up BitLocker for interoperability with Active Directory, Microsoft gets you to run a VBS script to add an Access Control Entity (https://technet.microsoft.com/en-us/library/dd875529%28v=ws.10%29.aspx). Unfortunately the script didn’t work for me, so I rewrote it in PowerShell.
Use with .\BitLocker-ACE.ps1 -Read to check if the ACE is already there and .\BitLocker-ACE.ps1 -Write to create the ACE.
VMWare released “Photon” earlier this week, which is a lightweight Linux OS for hosting Docker containers. It’s amazingly slim like CoreOS and deploys in a matter of seconds. I gave it a spin today and it worked pretty well. Installing it on vSphere was pretty straightforward following documentation on the Photon GitHub site. Once it was installed, I needed to make a few changes to get it working smoothly.
Setting the proxy
If your environment uses a proxy to connect to the internet, continue with this section. If not, skip.
First, create a new directory to store the extra configuration.
1
mkdir /etc/systemd/system/docker.service.d
Next, create a http-proxy.conf file in the directory and edit it.
Move the binary to /bin/ and mark it as executable
1
2
3
4
5
systemctl stop docker
rm -r /bin/docker
mv docker-1.6.0 /bin/docker
chmod +x /bin/docker
systemctl start docker
You will now have Docker 1.6.0 running.
Connecting from Windows
Download Docker 1.6.0 for Windows from Docker.com - 32-bit or 64-bit and open PowerShell in that directory. At this point I recommend renaming the file to docker.exe.
To connect to the Photon host, run the following:
1
.\docker.exe -H=tcp://photon.ip.address.here:2375 info
This will show information about the Docker host like so:
We’ve switched SMS providers at work to Nexmo, however they don’t have a SMTP API. I whipped up a quick EWS script to monitor a mailbox for emails in the correct format and to send SMS’ based off it. Script below.
The script should be run as the user whos mailbox will be monitored (ours is set up as a scheduled task). Next, it should have to subfolders called “Error” and “Processed”. Successful emails get marked as read and send to “Processed”, and unsuccessful emails get kept as unread and moved to “Error”. Because we send from some systems that don’t have SMTP authentication, there is a field called “Secret” that should be defined at the top of the PowerShell script and put in each email.
The format for the email is:
1
2
3
4
From: fromuser
To: number in international format (ie. +61404040404)
This isn’t really documented anywhere on the VMware website, but it comes in really handy if require certain users to have console access to machines without the complication of the vSphere Web Client.
Give the user access to the VM. The permission “Virtual Machine\Interaction\Console Interation” needs to be given on both the VM and the host. It doesn’t need to inherit to children so deselect “Propagate to children” in the permisisons screen”.
Create a shortcut to connect straight to the VM. The following PowerShell script can create the shortcut automatically.
Powershell Desired State Configuration (DSC) is relatively new but wow, it is so powerful! I’ve had troubles getting Pydio up and running in the past, so I created a consistent configuration file to get it working.
Simply save the file as pydio.ps1 and run it on the target server. Make sure to download the prerequisite files (PHP, VC++ 2012 Redistributable, PHP Manager for IIS) and put them in an accessible location.