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
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-premises 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...

Read More
PDC Emulator: Cannot Sync Time From External NTP Server
Aug28

PDC Emulator: Cannot Sync Time From External NTP Server

KB ID 0001464 Problem I was involved in a question on Experts Exchange this week where the asker could not get their PDC to sync time from an external NTP server. He was seeing an Event ID 12 Error; Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to...

Read More
Dcpromo Error: No Other Active Directory Controllers?
Aug04

Dcpromo Error: No Other Active Directory Controllers?

KB ID 0001453 Problem I was trying to demote a domain controller yesterday morning, it was a 2008 R2 Domain controller, (in fact it was SBS 2011). I’d already added a nice new Server 2016 Domain Controller to the domain, and transferred all the FSMO roles, so I was surprised when I tried to gracefully demote the old DC and got this; You did not indicate that this Active Directory domain controller is the last domain controller...

Read More
Exchange Update / Install Error: The Error Code Is 8224
Jul28

Exchange Update / Install Error: The Error Code Is 8224

KB ID 0001451 Problem I saw this error while attempting to install an update on Exchange 2010, but it can be seen on all flavours of Exchange. This is the ‘gist’ of the error; Organization Preparation Failed Error: The following error was generated when “$error.Clear(); install-ExchangeSchema -LdapFileName ($roleInstallPath + “Setup\Data\”+$RoleSchemaPrefix + “schema0.ldf”) ” was run:...

Read More
AD Sites and Services: ‘Show Services Node’ Missing?
Jul23

AD Sites and Services: ‘Show Services Node’ Missing?

KB ID 0001448 Problem While working on an old Exchange system this week I wanted to take a look at the ‘autodiscovery’ SCP in AD Sites and Services. Read any post, and you will se that you need to enable ‘Services Node View’ in AD sites and services. To do that you simply right click then go to View > Show Service Node. However, I didn’t get that option? Solution This was driving me crazy for a while,...

Read More
PowerShell: Finding Stale User and Computer Accounts
May15

PowerShell: Finding Stale User and Computer Accounts

KB ID 0001438 Problem I do this a lot, (usually prior to big migrations), most organisations have no mechanism for removing old users and computers from Active Directory, some don’t even disable the accounts. Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike “*” -and Enabled -eq $true } -Properties LastLogonDate | Select-Object @{...

Read More
Office 365: Migrating To Exchange Online
Apr01

Office 365: Migrating To Exchange Online

KB ID 0001418 Problem This is Part-One of a migration from ‘on-premise’ Microsoft Exchange, to Office 365 (Exchange Online). I’m using my spare ‘test domain’ (.co.uk). And I’m using the 5 user E3 Office 365 subscription that the good folk at Microsoft let me have, as part of my MVP benefits. Note: I’m using Exchange 2016, with a ‘full-hybrid’ migration into Office 365. Step 1:...

Read More
Remote Desktop Services: Can’t Remove Dead Server
Mar22

Remote Desktop Services: Can’t Remove Dead Server

KB ID 0001415 Problem I was doing some RDS work for a client today, and it would seem that at some time in the past their RDS Licensing server had died, it had been replaced, and everything was working OK. But when I was adding roles to the new servers, this kept popping up; The following server in this deployment are not part of the server pool 1. Server-Name The servers must be added to the server pool. I could have ignored the...

Read More
Exchange Setup Error: Cannot Update Schema
Mar14

Exchange Setup Error: Cannot Update Schema

KB ID 0001409 Problem I had a nightmare with this, (this morning). Client had an Exchange 2007 Server in a sub domain, and I am migrating them to Exchange 2016 (via Exchange 2013). While attempting to deploy the Exchange 2013 Server, the ‘Readiness Checks’ failed; Error: The Active Directory Schema isn’t up-to-date, and this user account isn’t a member of the ‘Schema Admins’ and/or ‘Enterprise...

Read More