---
title: Finding AD Users: Master Get-ADUser in PowerShell
description: Locate Active Directory users effortlessly. Learn to master the Get-ADUser cmdlet in PowerShell.
canonical: https://adamtheautomator.com/docker-windows-server/
---

# Finding AD Users: Master Get-ADUser in PowerShell

> Locate Active Directory users effortlessly. Learn to master the Get-ADUser cmdlet in PowerShell.

Source: https://adamtheautomator.com/docker-windows-server/

---

- Finding AD Users: Master Get-ADUser in PowerShell Tap to hide Home

- Tutorials

- Guidebooks

- Instructors

- Get Paid to Write

- Advertising

- Recommended Resources

- About Adam

                Search for:

-

-

-

-

# Finding AD Users: Master Get-ADUser in PowerShell

        Published:30 June 2019 - 3 min. read

- Docker

          [](https://adamtheautomator.com/author/adam-bertram/)

            [Adam Bertram](https://adamtheautomator.com/author/adam-bertram/)

            Read [more tutorials](https://adamtheautomator.com/author/adam-bertram/) by Adam Bertram!

-

-

        [](https://specopssoft.com/product/specops-password-auditor/?utm_source=adamtheautomator&utm_medium=referral&utm_campaign=adamtheautomator_referral_na&utm_content=display)
        Audit Active Directory for stale users, weak passwords, and other security risks with [Specops Password Auditor](https://specopssoft.com/product/specops-password-auditor/?utm_source=adamtheautomator&utm_medium=referral&utm_campaign=adamtheautomator_referral_na&utm_content=text).

Table of Contents

- Download and Install the Docker Module and Package
- Downloading the Base Image
- Running Commands in the Docker Windows Server Container

                XFacebookLinkedIn

If you're new to Docker and want to learn how to create your first Docker Windows Server container, you're in luck. In this article, you'll learn how to get started from scratch – no prior experience is necessary!

Not a reader? Watch this related video.

 Not seeing the video? Make sure your ad blocker is disabled.

Windows Server has come a long way since Windows NT. First, we could virtualize Windows Server, and now we can even play in the realm which what was once an exclusive Linux feature: containers!

Nowadays, we can run Windows on a container in Docker just as easily as a Linux-based container, but how? Since Microsoft is a fairly recent player in the container market, the concept of Docker and containers is probably new to a lot of Microsoft shops. The best way to learn about something is doing, so let's do it.

For this article, we're going to start from a Windows Server 2016 host since this is the earliest version of Windows in which you can run a true Docker host.

## Download and Install the Docker Module and Package

On your Windows Server 2016, head out to the PowerShell Gallery and download the [DockerMsftProvider](https://www.powershellgallery.com/packages/DockerMsftProvider/1.0.0.8
) module. This is the [PowerShell module](https://adamtheautomator.com/powershell-modules/) that contains all of the package providers that will allow you to download and install the docker utilities via the PowerShellGet Install-Package command.

PS> Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
PS> Install-Module -Name DockerMsftProvider -Force

Once you've got the provider installed, it's now time to put it to good use by installing the Docker page from it.

PS> Install-Package -Name docker -ProviderName DockerMsftProvider -Force

WARNING: A restart is required to enable the containers feature. Please restart your machine.
Name    Version        Source            Summary
----    -------        ------            -------
Docker	17.06.2-ee-6   DockerDefault    Contains Docker EE for use with Windows Server.

We will head the warning the package installer tells us and will then restart our Windows Server host with Restart-Computer -Force.

Once the server comes back online, check to see if the docker daemon is working correctly by checking the version. If you get back a client and a server section with version information for each, you're good to go!

PS> docker version
Client:
Version: 17.06.2-ee-6
API version: 1.30
Go version: go1.8.3
Git commit: e75fdb8
Built: Mon Nov 27 22:46:09 2017
OS/Arch: windows/amd64

Server:
Version: 17.06.2-ee-6
API version: 1.30 (minimum version 1.24)
Go version: go1.8.3
Git commit: e75fdb8
Built: Mon Nov 27 22:55:16 2017
OS/Arch: windows/amd64
Experimental: false

## Downloading the Base Image

Next comes the part where you need a container base image. The easiest way to get an image onto your server is through the [Docker Hub](https://hub.docker.com/). To get an image from the Docker Hub, you can use the pull parameter on the docker utility.

Related: [How to Create a Docker Windows Image with Docker Build](https://adamtheautomator.com/docker-build-tag/)

For now, I'll pull down a fresh copy of Windows Server Core. Once started, you will see the download progress for each image in the defined repository.

PS> docker pull microsoft/windowsservercore

Using default tag: latest
latest: Pulling from microsoft/windowsservercore
3889bb8d808b: Downloading [========================> ] 2.019GB/4.07GB
cfb27c9ba25f: Download complete

Once the image for Windows has been downloaded, the Docker engine will then extract each image from its compressed state. Unfortunately, for Windows Server images, this can take a bit of time. But once the image(s) have extracted, you've created your first Windows Server container with Docker!

## Running Commands in the Docker Windows Server Container

The final piece just to confirm the container is intact and working is to send a run command to it using docker run. docker run is a command that sends a non-interactive command to the container. It's essentially like opening up cmd and running commands that way.

Any command will work so for how we'll just see if we can return the hostname of the container using the hostname command.

PS> docker run microsoft/windowsservercore
hostname69c7de26ea48

If it returns anything but an error you're done! You've now got a Windows Server 2016 host setup with the Docker service running capable of pulling and pushing Docker images to/from the Docker Hub and running any number of containers you please.

  Hate ads? Want to support the writer? Get many of our tutorials packaged as an ATA Guidebook.

  [Explore ATA Guidebooks](https://adamtheautomator.com/ata-guidebooks/)

## More from ATA Learning and Partners

- ### Recommended Resources! Recommended Resources for Training, Information Security, Automation, and more!

- ### Get Paid to Write! ATA Learning is always seeking instructors of all experience levels. Regardless if you’re a junior admin or system architect, you have something to share. Why not write on a platform with an existing audience and share your knowledge with the world?

- ### ATA Learning Guidebooks ATA Learning is known for its high-quality written tutorials in the form of blog posts. Support ATA Learning with ATA Guidebook PDF eBooks available offline and with no ads!

## Categories

- IT Ops

- Cloud

- DevOps

- Home Ops

- Information Security

- Software Development

## Site

- Home

- Tutorials

- Guidebooks

- Instructors

- Get Paid to Write

- Advertising

- Recommended Resources

- About Adam

        Copyright 2026&copy; ATA Learning | [Privacy Policy](https://adamtheautomator.com/privacy/)

                                                        Don't be left behind with the ATA Learning Newsletter!

Looks like you're offline!
