Posts tagged with AD DS

Copying AD User Group Permissions with PowerShell

June 6th, 2017 by and tagged , , ,

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 | No Comments »

PowerShell: Rename an Active Directory User

March 11th, 2017 by and tagged , , ,

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 »

Building a Lab in Hyper-V with PowerShell, Part 4

March 9th, 2017 by and tagged , , ,

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 | No Comments »

Configuring Windows Server 2016 core as a DHCP Server with PowerShell

February 15th, 2017 by and tagged , , , , ,

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 | No Comments »

Importing users into Active Directory

October 27th, 2016 by and tagged , , , ,

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

Active Directory — Unlocking a User Account with PowerShell

September 9th, 2016 by and tagged , , , , , ,

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

Promoting a new domain controller

May 14th, 2016 by and tagged , , , ,

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