PowerShell: Bulk Enable / Disable Users
Sep11

PowerShell: Bulk Enable / Disable Users

KB ID 0001469 Problem I needed to work out how to bulk disable some domain users from a .CSV file this week, so I thought I’d write it up. Disable Domain Users in Bulk from CSV Well firstly, you need to have your users in a CSV file. For the live job I just exported all the SamAccountNames to a CSV, but here for testing I just loaded a few in manually; Then execute the following two commands; Import-Module¬†ActiveDirectory¬†...

Read More
Cisco ASA5500 – L2TP over IPSEC VPN
Sep10

Cisco ASA5500 – L2TP over IPSEC VPN

KB ID 0000571 Problem When Cisco released version 7 of the operating system for PIX/ASA they dropped support for the firewall acting as a PPTP VPN device. Note: If you want to use PPTP you can still terminate PPTP VPNs on a Windows server, if you enable PPTP and GRE Passthrough on the ASA. But if you want to use the native Windows VPN client you can still use L2TP over IPSEC. I had a look around the net to work out how to do this and...

Read More
Exchange and the LegacyExchangeDN Problem
Sep07

Exchange and the LegacyExchangeDN Problem

KB ID 0001468 Problem Why do we have the Exchange LegacyDN? It’s a throwback, from a time when we had our users, and our mail users in different databases. Below you can see the ExchangeLegacyDN for this Exchange on-premise user; /O=First Organisation/OU=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn={something-user-specific} Who cares? Well they are still important, if you send an internal email (to someone in...

Read More
Forward Mail From Exchange (On-Prem) To Office 365
Sep06

Forward Mail From Exchange (On-Prem) To Office 365

KB ID 0001467 Problem WARNING: Do not do this, if you are carrying out a Hybrid migration to Office 365! I’ve been doing an On-Prem to Office 365 migration recently. It was a little unusual because the ‘on-prem’ Exchange was not in the clients domain. So rather than migrate all the mail to their domain, and them migrate it to Office 365 ¬†we chose to use a third party migration solution ODME (Quest On Demand Migration...

Read More
Office 365: Grant a User Full Mailbox Access to all Mailboxes
Sep02

Office 365: Grant a User Full Mailbox Access to all Mailboxes

KB ID 0001466 Problem Obviously there are some security concerns about having a user with full mailbox access to all mailboxes! But that aside, I was using a third party Migration tool last week, and it needed to connect to every mailbox with full access rights to perform the migration. So this is how I did it; Solution Firstly you need to connect to your Office 365 tenant with PowerShell; Connect to Office 365 Exchange PowerShell Now...

Read More
Exchange 2016 / 2013 Manage Remotely via PowerShell
Aug30

Exchange 2016 / 2013 Manage Remotely via PowerShell

KB ID 0001465 Problem Since Exchange 2013 we have been able to manage Exchange remotely through the Exchange Admin Center, but what if you want to use the Exchange Management Shell remotely? Install Exchange Management Tools This is not just the Management Shell, this will also install the Toolbox and additional help. There are few prerequisites, but to install from a normal PowerShell prompt; Enable-WindowsOptionalFeature -Online...

Read More