WELCOME TO TECH IMMERSION



Similar documents
Active Directory in Windows Server 2008 R2: What s New?

Windows Server 2008 R2: What's New in Active Directory

WS 2008 R2 Active Directory: Diving in to the core

Active Directory Friday: All Articles. Jaap Brasser

Track User Password Expiration using Active Directory

Windows Server 2008R2 AD Backup and Disaster Recovery Procedures

Microsoft. Jump Start. M3: Managing Windows Server 2012 by Using Windows PowerShell 3.0

Exam : Administrating Windows Server 2012 R2. Course Overview

Windows Server 2012 AD Backup and Disaster Recovery Procedures

Windows PowerShell. 3.0 Step by Step. Ed Wilson

Windows Server 2012 AD Backup and Disaster Recovery Procedures

Module 4. Managing Groups. Contents: Lesson 1: Overview of Groups 4-3. Lesson 2: Administer Groups Lab A: Administer Groups 4-36

Active Directory Deployment and Management Enhancements

Active Directory Commands ( )

PowerShell 3.0 Advanced Administration Handbook

Microsoft Windows PowerShell v2 For Administrators

Windows Server 2008 R2: Active Directory and Server Manager Remoting

Automating Microsoft

EXAM Designing and Implementing a Server Infrastructure. Buy Full Product.

Using the vcenter Orchestrator Plug-In for Microsoft Active Directory

TestOut Course Outline for: Windows Server 2008 Active Directory

70-417: Upgrading Your Skills to MCSA Windows Server 2012

BlackShield ID. QUICKStart Guide. Integrating Active Directory Lightweight Services

Configuring Windows Server 2008 Active Directory

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Active Directory Objectives

WHITE PAPER BT Sync, the alternative for DirSync during Migrations

Forests, trees, and domains

Clearswift SECURE Exchange Gateway Installation & Setup Guide. Version 1.0

R4: Configuring Windows Server 2008 Active Directory

6425C - Windows Server 2008 R2 Active Directory Domain Services

Active Directory Installation on Windows Server 2012

Quality Management Consultancy

Using LDAP Authentication in a PowerCenter Domain

Microsoft Virtual Labs. Active Directory New User Interface

You Should Be Using PowerShell Aaron Kaiser Senior Technology Support Specialist Parkway School District

Partie Serveur Lab : Implement Group Policy. Create, Edit and Link GPOs. Lab : Explore Group Policy Settings and Features

Learn Active Directory Management in a Month of Lunches. Chapter 6

MS-6425C - Configuring Windows Server 2008 Active Directory Domain Services


Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Active Directory. By: Kishor Datar 10/25/2007

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Microsoft. Jump Start. M11: Implementing Active Directory Domain Services

Integration Guide. SafeNet Authentication Service. Integrating Active Directory Lightweight Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain MOC 6425

Z-Term V4 Administration Guide

11 essential tools for managing Active Directory

Z-Hire V3 Administration Guide

LDAP Directory Integration with Cisco Unity Connection

Forefront Management Shell PowerShell Management of Forefront Server Products

SPHOL300 Synchronizing Profile Pictures from On-Premises AD to SharePoint Online

LT Auditor Windows Assessment SP1 Installation & Configuration Guide

6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Active Directory Manager Pro New Features

Configuring and Troubleshooting Windows 2008 Active Directory Domain Services

Troubleshooting Active Directory Lingering Objects

Field Description Example. IP address of your DNS server. It is used to resolve fully qualified domain names

ActiveRoles Management Shell for Active Directory

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

LAB 1: Installing Active Directory Federation Services

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Active Directory LDAP Quota and Admin account authentication and management

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

How To Search For An Active Directory On Goprint Ggprint Goprint.Org (Geoprint) (Georgos4) (Goprint) And Gopprint.Org Gop Print.Org

Installing, Configuring, and Managing a Microsoft Active Directory

NE-6425C Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

USER GUIDE. Lightweight Directory Access Protocol (LDAP) Schoolwires Centricity

Configuring Sponsor Authentication

Active Directory Disaster Recovery Workshop. Lab Manual Revision 1.7

ADMT v3.1 Guide: Migrating and Restructuring Active Directory Domains

8.3. Competitive Comparison vs. Microsoft ADMT 3.1

Deploying and Managing Active Directory with Windows PowerShell

Windows Server. Introduction to Windows Server 2008 and Windows Server 2008 R2

LDaemon. This document is provided as a step by step procedure for setting up LDaemon and common LDaemon clients.

Outline SSC Configuring and Troubleshooting Windows Server 2008 Active Directory

ChangeAuditor 5.8 For Active Directory

User Management Resource Administrator. Managing LDAP directory services with UMRA

Windows" 7 Desktop Support

Dell Active Administrator 8.0

ActiveRoles Management Shell for Active Directory

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Your Question. Article: Question: How do I Configure LDAP with Net Report?

Planning LDAP Integration with EMC Documentum Content Server and Frequently Asked Questions

Dell KACE K1000 System Management Appliance Version 5.4. Service Desk Administrator Guide

Restructuring Active Directory Domains Within a Forest

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

HELP DOCUMENTATION UMRA REFERENCE GUIDE

ADMT v3 Migration Guide

Course 6425B: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

PriveonLabs Research. Cisco Security Agent Protection Series:

1 Introduction. Ubuntu Linux Server & Client and Active Directory. Page 1 of 14

LDAP Implementation AP561x KVM Switches. All content in this presentation is protected 2008 American Power Conversion Corporation

Transcription:

WELCOME TO TECH IMMERSION Track: Active Directory Cmdlets Presenter: Brian McCann Global Platforms Engineer - Brian@Intel.com

PowerShell Advantages o Consistent vocabulary and syntax Verbs Add, New, Get, Set, Remove, Clear Nouns ADObject, ADUser, ADComputer, ADDomain, ADGroup, o Easily discovered No need to find, install, or learn other tools, utilities or commands o Flexible output Output from one cmdlet easily consumed by another o Leverage.Net Framework All the capabilities of.net Framework o Common automation platform End-to-End manageability of AD with other roles such as Exchange, Group Policy o 76 Cmdlets for managing Active Directory get-command *-ad*

Windows PowerShell AD Module Active Directory Module in Windows Server 2008 R2 A Windows PowerShell module Manage AD domains and Lightweight Directory Services (LDS) configuration sets AD Database Mounting Tool instance New Functionality Active Directory module provider Active Directory module cmdlets Windows PowerShell Integrated Scripting Environment (ISE) Out-GridView cmdlet Performance counters Special Considerations Only installs on Windows Server 2008 R2 At least one Windows Server 2008 R2 domain controller or LDS configuration set Windows 7 and Report Server Administration Tools (RSAT)

Active Directory Name Spaces o Active Directory Users & Computers dumbs it down o We need to know the real names Active Directory Hierarchical structure LDAP Distinguished Name (DN) CN=John Doe,OU=Sales,DC=DomainName,DC=com LDAP Relative Distinguished Name (RDN) John Doe Common Name (CN) John Doe Canonical Name DC=com/DC=DomainName/OU=Sales/CN=John Doe User Principal Name (UPN) John.Doe@DomainName.com Down level Name (SAM Account) DomainName\jdoe -or- jdoe

Where to Start? o Make sure your environment supports AD Cmdlets o Start with a purpose and goal o Account Management o Directory Management o Forest/Domain Management

Active Directory Cmdlets Requirements o Server 2008 R2 Domain Controller or Lightweight Directory Services o Active Directory Management Gateway Service Supported on Server 2003 SP2 Server 2003 R2 SP2 Server 2008 and above Domain and Forest functional levels do not matter DotNet 3.5 SP1 Server 2003 SP2 hotfix Or Server 2003 SP2 and R2 SP2 hotfix Server 2008 hotfix Windows 7 Clients need RSAT o Much easier if you have Server 2008 R2 DCs!!!

How does PowerShell make my life easier? o Common automation platform o Easy to create and understand scripts o Great documentation!!! o A great open community that thrives on sharing ideas

Active Directory Cmdlets Getting Started o Open PowerShell and type import-module ActiveDirectory o Now what is available get-command -module ActiveDirectory Select Name Format-Wide o How do we get the AD Cmdlets every time we open PowerShell? Add it to your Windows PowerShell profile Open the Active Directory PowerShell executable

Active Directory Account Management Using AD Cmdlets for day to day tasks o Search-ADAccount o Disable-ADAccount o Enable-ADAccount o Unlock-ADAccount ADAccount = Users, Computers & Service Accounts

Account Management One Liners Find Disabled Accounts o Search-ADAccount -AccountDisabled FT Name,ObjectClass -A Find Locked Accounts o Search-ADAccount -LockedOut FT Name,ObjectClass -A Find Passwords that never expire Search-ADAccount -PasswordNeverExpires FT Name,ObjectClass -A

Account Management Find Inactive Accounts One Liners o Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 FT Name,Obj Find Expired Accounts o Search-ADAccount -AccountExpired FT Name,ObjectClass -A

Active Directory Account Management (cont) o New, Get, Set & Remove ADUser ADGroup ADComputer ADServiceAccount ADOrganizationalUnit ADDomainController

Active Directory Account Management Get User Info o Get-ADUser -Identity Administrator Additional info can be found o -Properties * Get Domain Controller Info o Get-ADDomainController

Active Directory Account Management Get Group Info o Get-ADGroup -Identity Administrators" Get Group Membership o Get-ADGroupMember -Identity Administrators"

What is ADServiceAccount? o It is a new type of Account that can be used for Services on a single system o It is a hybrid account that is part User and part computer account Password changes every 30days and are 240 characters o Requirements: Server 2008 R2 Schema Server 2008 R2 or Windows 7 system

What is ADServiceAccount? How to create an ADServiceAccount o New-ADServiceAccount SA-SQL01 -Enabled $true -Path CN=Managed Service Accounts,DC=adminprep,DC=Local - ServicePrincipalNames MSSQLSVC/SQL01.adminprep.Local:1456

Resolve a SID to Name Who is S-1-5-21-2501206753-3968565444-3217736072-500 How about S-1-5-21-2501206753-3968565444-3217736072-1000

Active Directory Directory Management o New, Get, Set & Remove o Move, Rename & Restore ADObject

Search Active Directory Get-ADObject -Filter { CN -like "*bob*" }

Active Directory Site Management One Liners List all your Active Directory Sites o Get-ADObject -LDAPFilter "(objectclass=site)" - SearchBase 'CN=Configuration,DC=Adminprep,DC=local' - Properties CanonicalName FT Name,CanonicalName A List all your Active Directory Subnets o Get-ADObject -Filter 'ObjectClass -eq "site"' - SearchBase 'CN=Configuration,DC=AdminPrep,DC=local' - Properties siteobjectbl foreach {$_.siteobjectbl}

Active Directory Site Management Scripts Scripts to get Site info: o Get all Servers in a specified Active Directory site o Get all Subnets in a specified Active Directory site o Get a list of sites and their subnets

How do you like your Tombstone? Tombstone Lifetime o (get-adobject "cn=directory Service,cn=Windows NT,cn=Services,cn=Configuration,dc=AdminPrep,DC=Local" - properties "tombstonelifetime").tombstonelifetime Set Tombstone Object Lifetime o Set-ADObject -Identity CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=AdminPrep,DC=Local Partition CN=Configuration,DC=AdminPrep,DC=Local Replace:@{ tombstonelifetime = 250} Set Deleted Object Lifetime o Set-ADObject -Identity CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=AdminPrep,DC=Local Partition CN=Configuration,DC=AdminPrep,DC=Local Replace:@{ msds-deletedobjectlifetime = 250}

Active Directory Forest/Domain Management o Functional Levels o Password Policies o FSMO Management o Optional Features

Get Domain and Forest Info Domain and Forest Configuration o Get-ADForest adminprep.local o Get-ADDomain adminprep.local Raise Domain Functional Level o Set-ADDomainMode Identity adminprep.local forestmode Windows2008R2Domain Raise Forest Functional Level o Set-ADForestMode Identity adminprep.local forestmode Windows2008R2Forest

Rollback Functional Levels Server 2008 R2 PowerShell allows you to Revert functional levels o Set-ADDomainMode Identity adminprep.local forestmode Windows2008Domain Will not work if you enabled the Active Directory Recycle Bin Will not work if you are currently in Server 2008 R2 FFL

Fine Grained Password Policies Much easier than Windows Server 2008 o Get-adfinegrainedpasswordpolicy filter * o New-ADFineGrainedPasswordPolicy o Add-ADFineGrainedPasswordPolicySubject View which users have been applied a FGPP o Get-ADFineGrainedPasswordPolicySubject identity group or user View Default Domain Password Policy o Get-ADDefaultDomainPasswordPolicy

FSMO Management FSMO Management o Move-ADDirectoryServerOperationMasterRole PDCEmulator RIDMaster InfrastructureMaster SchemaMaster DomainNamingMaster

Enabling AD Recycle Bin Enable the Active Directory Recycle Bin: Enable-ADOptionalFeature -Identity "CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service, CN=Windows NT,CN=Services, CN=Configuration, DC=AdminPrep,DC=Local" -Scope ForestorConfigurationSet -Target "AdminPrep.local Restore a deleted object: get-adobject inc f {samaccountname like bri*"} restoreadobject

Thank you. http://blogs.msmvps.com/ad