June 6th, 2017 by Charlie Russel and tagged Active Directory, AD DS, Copy AD User, PowerShell
One of the tasks that I’m often asked to perform as an Active Directory domain administrator is to assign a user the same set of permissions as an existing user. This is something you can do fairly easily in the GUI (Active Directory Users and Computers, dsa.msc) when you’re first creating the user, but which […]
Posted in Active Directory, IT Admin, PowerShell, Security | Comments Off on Copying AD User Group Permissions with PowerShell
March 11th, 2017 by Charlie Russel and tagged Active Directory, AD DS, PowerShell, Rename User
This came up at work the other day. Another admin had attempted to rename an AD User account and it had only partially gotten renamed — the SAM Account, Name and Display name were all correct, but the old user name was still showing up in a couple of places, including the login screen. The […]
Posted in Active Directory, PowerShell | 2 Comments »
March 9th, 2017 by Charlie Russel and tagged Active Diretory, AD DS, IP Address, PowerShell
Creating a new forest In the previous sections of this series, I’ve covered how to build VMs using PowerShell, but labs aren’t much good if they don’t actually have any structure. So, let’s create a new forest and domain to manage our labs. I’m going to assume for this post that you’ve gotten started already […]
Posted in Active Directory, Building Labs, DHCP, Networking, PowerShell, Windows Server Core | Comments Off on Building a Lab in Hyper-V with PowerShell, Part 4
February 15th, 2017 by Charlie Russel and tagged Active Directory, AD DS, DHCP, Networking, PowerShell, Server core
As I mentioned last time, I’m setting up a new domain controller and DHCP server for my internal domain on Windows Server 2016 Core, and I’m exclusively using PowerShell to do it. For both the DHCP Server and AD DS roles, we need to configure a fixed IP address on the server, so let’s do […]
Posted in Active Directory, DHCP, Hyper-V, Networking, PowerShell, Windows Server 2016, Windows Server Core | Comments Off on Configuring Windows Server 2016 core as a DHCP Server with PowerShell
October 27th, 2016 by Charlie Russel and tagged Active Directory, AD DS, Import-CSV, New-ADUser, PowerShell
When you need to create a single user in Active Directory Domain Services (AD DS), the tendency is to just “do it” in the GUI – either Active Directory Users and Computers (ADUC) or Active Directory Administrative Center (ADAC). But if you’ve got 25 users to add, or even 5 users to add, that’s just […]
Posted in Active Directory, Network Administration, PowerShell | Comments Off on Importing users into Active Directory
September 9th, 2016 by Charlie Russel and tagged Active Directory, AD DS, Credential, Param, Parameters, PowerShell, PSCredential
As any SysAdmin knows, users periodically lock themselves out of their accounts, usually because they forgot a password or somehow mistyped it too many times. And after all, if it failed once, why not keep trying it? Unlocking that account is NOT something you do with Set-ADUser, unfortunately, because the PowerShell ActiveDirectory module has a […]
Posted in Active Directory, PowerShell, PSCredential | Comments Off on Active Directory — Unlocking a User Account with PowerShell
May 14th, 2016 by Charlie Russel and tagged Active Directory, AD DS, PowerShell, Server 2016, Server core
I’ve been working with Windows Server 2016 CTP5 recently, and because I installed it without the Desktop Experience (what we used to call a Server Core installation), I’m having to do everything in Windows PowerShell. No complaints, I enjoy it, but it does force me to think about things a bit sometimes. One of the […]
Posted in Active Directory, Network Administration, PowerShell, Windows Server, Windows Server Core | Comments Off on Promoting a new domain controller