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 @{ Name="Username";...

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
Windows 10: Remote VPN Client Cannot Resolve Domain DNS
Feb16

Windows 10: Remote VPN Client Cannot Resolve Domain DNS

KB ID 0001402 Problem I’ve been setting up a VPN solution on the test bench as I’m looking at Always On VPN. When I noticed that I had a problem with my remote VPN connections on Windows 10. They would connect fine but I could not resolve any FQDNs for my domain? Solution By default, all (Windows) VPN connections are ‘Force Tunnel’ (this means they have the option ‘Use default gateway on remote...

Read More
PowerShell: Creating Domains and Domain Controllers
Feb12

PowerShell: Creating Domains and Domain Controllers

KB ID 0001400 Problem I needed to spin up some Windows 2016 Servers, and a domain to do some testing. I have promoted hundreds maybe thousands of domain controllers, so I wondered if this time I could do it with PowerShell. It’s actually easier than using the GUI! Solution If you were doing this in Server Manager, you would have to add the role first, and PowerShell is no different; Install-WindowsFeature AD-Domain-Services...

Read More