From the course: Advanced PowerShell: Automating Active Directory Administration

Unlock the full course today

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

Managing printers

Managing printers

- [Instructor] Adding a printer into your domain joined server or domain controller doesn't automatically add it into active directory. We also need to add ports and drives. We need to share it. We need to publish it. And it's going to be one of the most frustrating things that you ever do using PowerShell. And that's because the cmdlets vary by operating system, by version of the operating system. They constantly are changing and Microsoft's documentation is rarely right along with anyone else's. So you have to sort of get a conglomeration of a lot of different authors until you can test all these out for yourself, which I strongly recommend that you do until you get it to work the way you want. There are some universal commands that we can type such as get-printer, which I'll do here. And that gives us a list of the default printers that are installed with the server. Now if I type in get-printerdriver it will tell me…

Contents