Contents

PowerShell for IT Professionals [#9] – Setting up Active Directory

Contents

Exercises

  • On domain controller, find module that allows to manage Active Directory
  • List all the Active Directory users
  • List members of “Enterprise Administrators”
  • Find the feature name for Windows Server Backup and install it with PowerShell

Commands

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
### Server

# Check IP configuration
# Show steps in Server how to install

# Check hostname
Hostname

# Rename server
Rename-Computer ps-svr1

# Restart computer
Reboot-computer

# Get-WindowsFeature

# Install-WindowsFeature 
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

Install-ADDSForest -DomainName posh.pri

### Client

# Check IP
GIP

Hostname

Add-Computer -DomainName posh.pri