Exchange – Extend Email Approval Expiration

Exchange has a brilliant feature called ‘Email approval’ that can be configured using mail flow rules. This allows emails to configured recipients to be redirected to a user or a mailbox where it must be approved before reaching it’s final destination.

By default, any emails awaiting approval for between 2-7 days will expire and will be automatically rejected and this is entirely dependent on when the system task runs to clear the mailboxes.

Continue reading “Exchange – Extend Email Approval Expiration”

PowerShell – How to Report on NTFS File/Folder Inheritance & Permissions

The script below was taken from The script takes a directory path to search from, it will then get a list of all subdirectories, loop through each of them then generate a nice grid view report of all permissions in subdirectories and whether they are inherited. This should generate a report similar to the image below – Continue reading PowerShell – How to Report on NTFS File/Folder Inheritance & Permissions

PowerShell – Getting all Users in Domain Users Group – 5000+ Users

I recently needed to generate a report of all Domain Users which brought up a few interesting issues, the first is that members aren’t actually listed as members of the group which removes the ability to use a lot of the standard PowerShell commands to produce a report on it, plus the group had well over 5000 users which again limits the commands available to … Continue reading PowerShell – Getting all Users in Domain Users Group – 5000+ Users

How to Easily Migrate your Entire On-Prem DNS to Azure

So as with many companies we’re shifting to a Cloud environment from aging physical systems, as part of this I came across a requirement to migrate our entire On-Premise DNS System which is hosted on a Windows Server into Azure.

I wasn’t about to start migrating a few hundred individual DNS Zones in this case as that doesn’t sound like a whole lot of fun when it’s a seemingly repetitive task that I could instead script up so that’s what I did.

The instructions and code below are meant to get you in the right direction, the script is not necessarily production ready and could be improved greatly, if you take the time to do so please comment with any alterations you make and I’ll include them in this article.

Continue reading “How to Easily Migrate your Entire On-Prem DNS to Azure”

Active Directory – How to Generate a Group Membership Report

Another small one today, the script below will generate a nice csv export of every single group and it’s active user membership from Active Directory. The next step would likely be to turn it into a nice Pivot Table for reviewing.

It should be fairly straightforward to change it to show all users or all users & computers etc as required.

Continue reading “Active Directory – How to Generate a Group Membership Report”

Powershell – Error Logging Module

This is my new blog to discuss various things that don’t fit into I’ll be posting various things from PowerShell clips, exam study notes and pretty much anything else I feel like doing a write-up on.

We quite often use PowerShell scripts in scheduled tasks and the likes to carry out automated maintenance, backups etc as many people do. But how do you handle when things go wrong?

This small script aims to solve that by allowing logging and email notifications to be easily set up in any PowerShell script. Simply drop it in at the top and follow the instructions to enable easy logging of your scripts.

Continue reading “Powershell – Error Logging Module”