Microsoft ® Official Course Module 4 Automating Active Directory Domain Services Administration.

Slides:



Advertisements
Similar presentations
Deploying and Managing Active Directory Certificate Services
Advertisements

Implementing Domain Name System
Module 5: Creating and Configuring Group Policy
Managing User Settings with Group Policy
Module 4: Implementing User, Group, and Computer Accounts
Module 3: Configuring Active Directory Objects and Trusts.
Group Policies (the day after) Group Policy Preferences Powershell.
MCTS Guide to Configuring Microsoft Windows Server 2008 Active Directory Chapter 5: Account Management.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 3: Creating and Managing User Accounts.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
Lesson 14: Creating and Managing Active Directory Users and Computers
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
Chapter 3 – Creating and Managing User Accounts MIS 431 – Created Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 3: Creating and Managing User Accounts.
Microsoft ® Official Course Module 7 Configuring File Access and Printers on Windows ® 8 Clients.
11 WORKING WITH COMPUTER ACCOUNTS Chapter 8. Chapter 8: WORKING WITH COMPUTER ACCOUNTS2 CHAPTER OVERVIEW  Describe the process of adding a computer to.
11 WORKING WITH COMPUTER ACCOUNTS Chapter 8. Chapter 8: WORKING WITH COMPUTER ACCOUNTS2 CHAPTER OVERVIEW Describe the process of adding a computer to.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 3: Creating and Managing User Accounts.
Microsoft ® Official Course Module 4 Automating Active Directory Domain Services Administration.
Module 2: Managing User and Computer Accounts
Microsoft ® Official Course Module 9 Configuring Applications.
Microsoft ® Official Course Module 12 Monitoring, Managing, and Recovering AD DS.
Guide to MCSE , Enhanced 1 Activity 4-1: Creating and Adding Members to Global Groups Objective: Use Active Directory Users and Computers to create.
Module 1: Installing Active Directory Domain Services
Implementing Dynamic Host Configuration Protocol
Overview Print and Document Services Print Management console Printer properties Troubleshooting PowerShell.
Module 2 Creating Active Directory ® Domain Services User and Computer Objects.
DS Commands Notes and Examples. DS Commands Tools that are available to manage Active Directory from the command prompt. Use of DS commands requires an.
Module 1: Introduction to Administering Accounts and Resources
Advanced Deployment and Administration of AD DS
Securing Windows Servers Using Group Policy Objects
Deploying and Managing Windows Server 2012
Microsoft ® Official Course Module 13 Troubleshooting and Recovering Windows 8.
Implementing DNS Module D 7: Implementing DNS
Implementing Dynamic Host Configuration Protocol
1 Week 3 Secure and Efficient Administration of Act. Dir. Work with Active Directory Snap-Ins Custom Consoles and Least Privilege Find Objects in Active.
Implementing File and Print Services
Managing Active Directory Domain Services Objects
Microsoft ® Official Course Module XA Using Windows PowerShell ®
Managing User and Service Accounts
Implementing Update Management
Deploying and Maintaining Server Images
Configuring Encryption and Advanced Auditing
Active Directory Administration (cmdlets) Microsoft Confidential1.
Module 15: Manage the Windows ® Small Business Server 2008 Environment Using Group Policy.
Securing AD DS Module A 3: Securing AD DS
Managing User Desktops with Group Policy
20411B 8: Installing, Configuring, and Troubleshooting the Network Policy Server Role Presentation: 60 minutes Lab: 60 minutes After completing this module,
Maintaining Active Directory Domain Services
Module 3: Configuring Active Directory Objects and Trusts.
Module 2: Managing User and Computer Accounts. Overview Creating User Accounts Creating Computer Accounts Modifying User and Computer Account Properties.
Microsoft ® Official Course Module 3 Managing Active Directory Domain Services Objects.
Module 3 Managing Recipient Objects. Module Overview Managing Mailboxes Managing Other Recipients Configuring Address Policies Configuring Address.
Module 3: Managing a Microsoft ® Windows ® Small Business Server Environment.
Module 2 Creating Active Directory ® Domain Services User and Computer Objects.
Introduction to Active Directory Domain Services
Module 1: Implementing Active Directory ® Domain Services.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
Module 5: Creating and Configuring Group Policies.
Implementing Group Policy
Implementing a Group Policy Infrastructure
Module 10: Implementing Administrative Templates and Audit Policy.
Week 3 Objectives Manage User Accounts Manage Group Accounts Manage Computer Accounts Delegation Use Commandline Tools and Windows PowerShell for AD DS.
Module 6: Configuring User Environments Using Group Policies.
Automating Active Directory Domain Services Administration
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
Active Directory Bulk Operations
Implementing and Managing Group and Computer Accounts
Presentation transcript:

Microsoft ® Official Course Module 4 Automating Active Directory Domain Services Administration

Module Overview Using Command-line Tools for AD DS Administration Using Windows PowerShell for AD DS Administration Performing Bulk Operations with Windows PowerShell

Lesson 1: Using Command-line Tools for AD DS Administration Benefits of Using Command-Line Tools for AD DS Administration What Is Csvde? What Is Ldifde? What Are DS Commands?

Benefits of Using Command-Line Tools for AD DS Administration Command-line tools allow you to automate AD DS administration Benefits of using command-line tools: Faster implementation of bulk operations Customized processes for AD DS administration AD DS administration on server core

What Is Csvde? csvde –i –f filename –k Use csvde to export objects to a.csv file: -f filename -d RootDN -p SearchScope -r Filter -l ListOfAtrributes Use csvde to create objects from a.csv file: AD DS Import Export csvde.exe filename.csv

What Is Ldifde? Use ldifde to export objects to a LDIF file: -f filename -d RootDN -r Filter -p SearchScope -l ListOfAttributes -o ListOfAttributes Use ldifde to create, modify, or delete objects: ldifde –i –f filename –k Export ldifde.exe filename.ldif Import AD DS

What Are DS Commands? Windows Server 2012 includes command-line tools that are suitable for use in scripts Examples To modify the department of a user account, type: To display the of a user account, type: To delete a user account, type: To create a new user account, type: Dsmod user "cn=Joe Healy,ou=Managers, dc=adatum,dc=com" –dept IT Dsget user "cn=Joe Healy,ou=Managers, dc=adatum,dc=com" – Dsrm "cn=Joe Healy,ou=Managers,dc=adatum,dc=com" Dsadd user "cn=Joe Healy,ou=Managers,dc=adatum,dc=com"

Lesson 2: Using Windows PowerShell for AD DS Administration Using Windows PowerShell Cmdlets to Manage User Accounts Using Windows PowerShell Cmdlets to Manage Groups Using Windows PowerShell Cmdlets to Manage Computer Accounts Using Windows PowerShell Cmdlets to Manage OUs

Using Windows PowerShell Cmdlets to Manage User Accounts Cmdlet Description New-ADUserCreates user accounts Set-ADUserModifies properties of user accounts Remove-ADUserDeletes user accounts Set-ADAccountPasswordResets the password of a user account Set-ADAccountExpiration Modifies the expiration date of a user account Unlock-ADAccount Unlocks a user account after it has become locked after too many incorrect login attempts Enable-ADAccountEnables a user account Disable-ADAccountDisables a user account New-ADUser "Sten Faerch" –AccountPassword (Read-Host –AsSecureString "Enter password") ‑ Department IT

Using Windows PowerShell Cmdlets to Manage Groups Cmdlet Description New-ADGroupCreates new groups Set-ADGroupModifies properties of groups Get-ADGroupDisplays properties of groups Remove-ADGroupDeletes groups Add-ADGroupMemberAdds members to groups Get-ADGroupMemberDisplays membership of groups Remove-ADGroupMemberRemoves members from groups Add-ADPrincipalGroupMembershipAdds group membership to objects Get-ADPrincipalGroupMembershipDisplays group membership of objects Remove- ADPrincipalGroupMembership Removes group membership from an object New-ADGroup –Name "CustomerManagement" –Path "ou=managers,dc=adatum,dc=com" –GroupScope Global –GroupCategory Security Add-ADGroupMember –Name “CustomerManagement” –Members "Joe"

Using Windows PowerShell Cmdlets to Manage Computer Accounts Cmdlet Description New-ADComputerCreates new computer accounts Set-ADComputerModifies properties of computer accounts Get-ADComputerDisplays properties of computer accounts Remove-ADComputerDeletes computer accounts Test- ComputerSecureChannel Verifies or repairs the trust relationship between a computer and the domain Reset -ComputerMachinePassword Resets the password for a computer account New-ADComputer –Name “LON-SVR8” -Path "ou=marketing,dc=adatum,dc=com" -Enabled $true Test-ComputerSecureChannel -Repair

Using Windows PowerShell Cmdlets to Manage OUs Cmdlet Description New-ADOrganizationalUnitCreates organizational units (OUs) Set-ADOrganizationalUnitModifies properties of OUs Get-ADOrganizationalUnitViews properties of OUs Remove-ADOrganizationalUnitDeletes OUs New-ADOrganizationalUnitCreates OUs Set-ADOrganizationalUnitModifies properties of OUs Get-ADOrganizationalUnitViews properties of OUs New-ADOrganizationalUnit –Name “Sales” –Path "ou=marketing,dc=adatum,dc=com" –ProtectedFromAccidentalDeletion $true

Lesson 3: Performing Bulk Operations with Windows PowerShell What Are Bulk Operations? Demonstration: Using Graphical Tools to Perform Bulk Operations Querying Objects with Windows PowerShell Modifying Objects with Windows PowerShell Working with CSV Files Demonstration: Performing Bulk Operations with Windows PowerShell

What Are Bulk Operations? A bulk operation is a single action that changes multiple objects Sample bulk operations Create user accounts based on data in a spreadsheet Disable all accounts not used in 6 months Rename the department for many users You can perform bulk operations by using: Graphical tools Command-line tools Script

Demonstration: Using Graphical Tools to Perform Bulk Operations

Querying Objects with Windows PowerShell ParameterDescription SearchBaseDefines the AD DS path to begin searching. SearchScopeDefines at what level below the SearchBase a search should be performed. ResultSetSizeDefines how many objects to return in response to a query. PropertiesDefines which object properties to return and display. FilterDefines a filter by using PowerShell syntax LDAPFilterDefines a filter by using LDAP query syntax -eqEqual to-gtGreater than -neNot equal to-geGreater than or equal to -ltLess than-likeUses wildcards for pattern matching -leLess than or equal to Descriptions of operators

Querying Objects with Windows PowerShell Show all the properties for a user account: Show all the user accounts in the Marketing OU and all its subcontainers: Show all of the user accounts with a last logon date older than a specific date: Show all of the user accounts in the Marketing department that have a last logon date older than a specific date: Get-ADUser –Name “Administrator” -Properties * Get-ADUser –Filter * -SearchBase "ou=Marketing,dc=adatum,dc=com" -SearchScope subtree Get-ADUser -Filter {lastlogondate -lt "January 1, 2012"} Get-ADUser -Filter {(lastlogondate -lt "January 1, 2012") -and (department -eq "Marketing")}

Modifying Objects with Windows PowerShell Use the pipe character ( | ) to pass a list of objects to a cmdlet for further processing Get ‑ ADUser ‑ Filter {company ‑ notlike "*"} | Set ‑ ADUser ‑ Company "A. Datum" Get ‑ ADUser ‑ Filter {lastlogondate ‑ lt "January 1, 2012"} | Disable ‑ ADAccount Get-Content C:\users.txt | Disable-ADAccount

Working with CSV Files The first line of a.csv file defines the names of the columns A foreach loop processes the contents of a.csv that have been imported into a variable FirstName,LastName,Department Greg,Guzik,IT Robin,Young,Research Qiong,Wu,Marketing $users=Import-CSV –LiteralPath “C:\users.csv” foreach ($user in $users) { Write-Host "The first name is:" $user.FirstName }

Demonstration: Performing Bulk Operations with Windows PowerShell

Lab: Automating AD DS Administration by Using Windows PowerShell Exercise 1: Creating User Accounts and Groups by Using Windows PowerShell Exercise 2: Using Windows PowerShell to Create User Accounts in Bulk Exercise 3: Using Windows PowerShell to Modify User Accounts in Bulk Logon Information Virtual machines20410D ‑ LON ‑ DC D ‑ LON ‑ CL1 User nameAdatum\Administrator PasswordPa$$w0rd Estimated Time: 55 minutes

Lab Scenario You have been working for A. Datum for several years as a desktop support specialist. In this role, you visited desktop computers to troubleshoot app and network problems. You have recently accepted a promotion to the server support team. One of your first assignments is configuring the infrastructure service for a new branch office. As part of configuring a new branch office, you need to create user and group accounts. Creating multiple users with graphical tools is inefficient, so, you will use Windows PowerShell.

Lab Review By default, are new user accounts enabled or disabled when you create them by using the NewADUser cmdlet? What file extension do Windows PowerShell scripts use?

Module Review and Takeaways Review Questions Tools