From the course: Advanced PowerShell: Automating Active Directory Administration

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Scripting using PowerShell

Scripting using PowerShell

- [Instructor] In your sys admin role as a PowerShell administrator for Active Directory, you're going to be working with a lot of scripts, but not all the scripts are going to be written by you. You're going to want to download some of these scripts from Microsoft.com or from other locations that are trusted where you'd like to go ahead and have some of that work done for you and then you can just customize it to make it work for you. Now, normally I would show this in the scripting environment of PowerShell, but it's a rather long script and so I want to show this to you in Notepad. Then we can save it as a PowerShell script and then I can go ahead and run it. So I will provide the link for this particular script so you can download it also. This particular script is going to move one or more of the Active Directory master roles from one domain controller to another. So at the very top, we'll go through each of these…

Contents