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

Reading Time: < 1 minute

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

### 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

0 comments on “PowerShell for IT Professionals [#9] – Setting up Active Directory

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.