PowerShell: Synchronizing a Folder (and Sub-Folders) Part 2

I wrote about a script to synchronise the contents of one folder to another here.  It worked as a quick and simple backup script and it would replicate files, deletions and sub-folders.  I’ve used it quite a bit since that post and I’ve made some special modifications myself.

Details after the break.

Update : I’ve revisited this script a few times with new additions and modifications.The latest full version of the script is here.  That post also includes links covering the other revisions to the script.

Continue reading “PowerShell: Synchronizing a Folder (and Sub-Folders) Part 2”

PowerShell: Report Mailbox Delegates Script (Office 365 Migration Tool) Part 2

This is the second part (part 1 here, final part here) describing my script that enumerates delegates on mailboxes from a set of users.  This part looks at the first of the two main functions that do all the work.

Having looked through the script, there may well be better / cleaner ways of doing this;  but I’m publishing this ‘as is’ while remembering writing this on the fly with a curious customer in one ear and a hasty Project Manager in the other 🙂 Continue reading “PowerShell: Report Mailbox Delegates Script (Office 365 Migration Tool) Part 2”

PowerShell: Report Mailbox Delegates Script (Office 365 Migration Tool) Part 1

For these posts I’m going to break down a script I used in anger on a customer site.  I was helping them with an Office 365 migration from on-premise and one of the tasks they wanted help with was planning the order of the migration for their users.

One of the limitations of the migration is that delegate access didn’t work between on-premise and Office 365;  this meant you wanted users with delegate access to mailboxes to be moved with those mailboxes (like a manager with her assistants for example).

They had a large, organically-grown Exchange infrastructure.  This was another way of saying they had no idea who had access to who’s mailbox and also who was a manager of whom.  Time for a bit of PowerShell to save the day. Continue reading “PowerShell: Report Mailbox Delegates Script (Office 365 Migration Tool) Part 1”

LAN Yarns : Black and White; or How To Raise A Psychopath

The geek generation is getting older.  More and more game protagonists aren’t saving their  true-loves but instead are saving their kids.  As we’ve gotten older in the real world, more of us are having a hand in raising little nerds in the One True Way, whatever that may be (Wars vs Trek, UT vs Quake, Linux vs Windows etc.).  This, of course, is awesome.

But a gamer might not always be the best influence on a child, as we saw when we played Black and White….. Continue reading “LAN Yarns : Black and White; or How To Raise A Psychopath”

PowerShell: Shutdown Azure VMs Outside Working Hours

I run some Azure Virtual Machine’s for work stuff (testing, remote access) and non-work stuff (game servers).  The specification is pretty low but I like to shut it down from Azure to reduce any charges from it.  This might lose their currently allocated IP address (they might get a different one on restart) but that’s not an issue for me.  Over the weekend is a good time as I almost never use Azure then.

Unfortunately my memory is pretty rubbish especially during the Friday afternoon excitement/rush.  What I want is a script that will run on my home machine, check the time and then shut my VMs down if we’re out of working hours.

The script follows with the explanation afterwards. Continue reading “PowerShell: Shutdown Azure VMs Outside Working Hours”