Wiley 978-1-1180-2731-8 Datasheet

Browse online or download Datasheet for Software manuals Wiley 978-1-1180-2731-8. Wiley Automating Active Directory Administration with Windows PowerShell 2.0 User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 54
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Administering
Service Delivery
PART I
X
CHAPTER 1 USING POWERSHELL
WITH ACTIVE DIRECTORY 03
X
CHAPTER 2 MANAGING DOMAIN AND FORESTS 55
X
CHAPTER 3 MANAGING SITES AND REPLICATION 91
X
CHAPTER 4 MANAGING DOMAIN CONTROLLERS 157
c01.indd 1c01.indd 1 5/12/2011 1:07:24 PM5/12/2011 1:07:24 PM
COPYRIGHTED MATERIAL
Page view 0
1 2 3 4 5 6 ... 53 54

Summary of Contents

Page 1 - Service Delivery

Administering Service DeliveryPART I XCHAPTER 1 USING POWERSHELL WITH ACTIVE DIRECTORY 03 XCHAPTER 2 MANAGING DOMAIN AND FORESTS 55 XCHAPTER 3

Page 2

10 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYProfile Scripts e PowerShell pro le is really a script that runs automatically when you o

Page 3 - CHAPTER 1

UNDERSTAND THE BASICS OF POWERSHELL 11Administering Service DeliveryPART Iby PowerShell to ensure that only trusted scripts are run. You’ll learn h

Page 4 - CHAPTER 1

12 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYCmdlets are precompiled and can be run from the PowerShell command interpreter directly or b

Page 5

UNDERSTAND THE BASICS OF POWERSHELL 13Administering Service DeliveryPART Iexample, if you want to get information about a speci c service on your

Page 6 - Use the Shell

14 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYEach cmdlet has a di erent set of parameters that it recognizes.  e -ComputerName paramete

Page 7 - TABLE 1.1 Console Properties

UNDERSTAND THE BASICS OF POWERSHELL 15Administering Service DeliveryPART IName Description-OutVariableSpecifi es a variable to which you want to wri

Page 8 - Use the Scripting Environment

16 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYString Cmdlets TogetherWhen used alone, a cmdlet can be a powerful tool. However, you can us

Page 9 - Understand Profiles

UNDERSTAND THE BASICS OF POWERSHELL 17Administering Service DeliveryPART IFIGURE 1.8 The output of the Get-Help cmdletVarious types of help are av

Page 10 - Creating a Profile

18 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYTABLE 1.3 Parameters for the Get-Help CmdletParameter Description-ExamplesDisplays various

Page 11 - Work with Cmdlets

UNDERSTAND THE BASICS OF POWERSHELL 19Administering Service DeliveryPART Iprompt to your command that requires additional input by the executor bef

Page 12 - Execute Cmdlets

c01.indd 2c01.indd 2 5/12/2011 1:07:37 PM5/12/2011 1:07:37 PM

Page 13 - Get-Service “Windows Update”

20 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYWhen you’re done creating your script, save it with a .ps1 extension, and the script will be

Page 14 - Name Description

UNDERSTAND THE BASICS OF POWERSHELL 21Administering Service DeliveryPART IIf you’re running scripts that you wrote for computer administration, the

Page 15

22 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYher private key. Bob doesn’t manually validate Alice’s script against her public key, howeve

Page 16 - Get Help on a Cmdlet

UNDERSTAND THE BASICS OF POWERSHELL 23Administering Service DeliveryPART Ifrom http://msdn.microsoft.com/en-us/windows/bb980924.aspx. A er you ins

Page 17

24 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYNOTE Some other development languages require you to defi ne what kind of data your variable

Page 18 - Test What a Command Will Do

UNDERSTAND THE BASICS OF POWERSHELL 25Administering Service DeliveryPART IFIGURE 1.10 Listing the currently used variablesIn addition to variables

Page 19 - Script Administration Tasks

26 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYAdd Logic to a ScriptLogic allows your scripts to do things to the variables you’re using an

Page 20 - Restricted

UNDERSTAND THE BASICS OF POWERSHELL 27Administering Service DeliveryPART IIf you were to run this code in a PowerShell script, the output would rea

Page 21

28 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYstatement can either end or test to see if something else is true. For example, con-sider th

Page 22 - 22 CHAPTER 1

UNDERSTAND THE BASICS OF POWERSHELL 29Administering Service DeliveryPART ITABLE 1.6 PowerShell Comparison OperatorsComparison OperatorDescription

Page 23 - Use Variables in a Script

CHAPTER 1Using PowerShell with Active DirectoryIN THIS CHAPTER, YOU WILL LEARN TO: XUNDERSTAND THE BASICS OF POWERSHELL 4Use the Shell . . . . . .

Page 24 - $DirectoryListing = dir

30 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYAccept Script ParametersWhen you write a PowerShell script, there are times when you may wan

Page 25 - Variable Description

UNDERSTAND THE BASICS OF POWERSHELL 31Administering Service DeliveryPART I is speci es that the script will accept a string parameter called -Fir

Page 26 - Add Logic to a Script

32 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYTABLE 1.7 Parameter PropertiesProperty Name PurposeMandatoryA Boolean property that determin

Page 27 - } Until ($counter -gt 3)

UNDERSTAND THE BASICS OF POWERSHELL 33Administering Service DeliveryPART IFor example, if you were to create a function called DisplayMessage that

Page 28 - 28 CHAPTER 1

34 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYCall FunctionsIf you want to use a function that you’ve de ned in your script, you have to

Page 29 - Description Example

UNDERSTAND THE BASICS OF POWERSHELL 35Administering Service DeliveryPART IRun a Script Outside of PowerShellWhen you write a .ps1 script, you can r

Page 30 - Accept Script Parameters

36 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYTo change the .ps1  le association, do the following: 1. Open the Control Panel, and run

Page 31

UNDERSTAND THE BASICS OF POWERSHELL 37Administering Service DeliveryPART ISchedule a Script to Run AutomaticallySometimes you’ll want to create a s

Page 32 - Use Functions in a Script

38 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYFIGURE 1.13 Selecting the appropriate permissions for scheduling a script 5. Click the Ac

Page 33

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 39Administering Service DeliveryPART IFIGURE 1.14 Selecting the appropriate action fo

Page 34 - SayHello.ps1

CHAPTER 1ince the dawn of the information technology age, administrators have been continually searching for ways to make their jobs easier. Rather th

Page 35

40 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYUse the Active Directory Services InterfacePrior to Windows Server 2008 R2, if you wanted to

Page 36 - 36 CHAPTER 1

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 41Administering Service DeliveryPART Ifact, if you pipe the user object into the Get-M

Page 37

42 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYuserAccountControl Property System.DirectoryServices.PropertyValu...uSNChanged

Page 38 - C:\Scripts\GetLogonStats.ps1

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 43Administering Service DeliveryPART IA er you bind to the container, you can create

Page 39 - Work Together

44 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYUse the Active Directory Module e Active Directory module for PowerShell is a new feature

Page 40 - 40 CHAPTER 1

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 45Administering Service DeliveryPART IAs mentioned earlier, the AD PowerShell module r

Page 41 - cmdlet, you can retrieve a

46 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYGet-ADRootDSEGet-ADServiceAccountGet-ADUserRemove-ADComputerRemove-ADComputerServiceAccountR

Page 42 - 42 CHAPTER 1

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 47Administering Service DeliveryPART IUse the Active Directory DriveIn addition to pro

Page 43

48 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYInfrastructure infrastructureUpdate CN=Infrastructure,DC=contoso,DC=comJenny Smith

Page 44 - 44 CHAPTER 1

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 49Administering Service DeliveryPART I“Con guring Active Directory Dependencies,” we’

Page 45

UNDERSTAND THE BASICS OF POWERSHELL 5Administering Service DeliveryPART Ireturn a text string as output. PowerShell is based on the .NET Framework.

Page 46 - 46 CHAPTER 1

50 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORY is example connects to the root\cimv2 namespace and uses the class StdRegProv, which prov

Page 47 - PS C:\> cd AD:

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 51Administering Service DeliveryPART Imay encounter is that if there is a  rewall bet

Page 48 - 48 CHAPTER 1

52 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORY FIGURE 1.15 ADWS Running on a Windows 2003 domain controllerUse Windows 7 or Windows Serv

Page 49

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 53Administering Service DeliveryPART IWindows 7 doesn’t include the RSAT feature by de

Page 50 - Configure Domain Controllers

54 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORY 3. Export the AD cmdlets from the remote session into a local copy of the module.  e fo

Page 51

6 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYUse the Shell e shell is the primary way that you’ll interact with PowerShell.  e shell i

Page 52 - 52 CHAPTER 1

UNDERSTAND THE BASICS OF POWERSHELL 7Administering Service DeliveryPART IYou can use the right arrow key to retype the previous command one charact

Page 53 - $session

8 CHAPTER 1 • USING POWERSHELL WITH ACTIVE DIRECTORYUse the Scripting EnvironmentPowerShell 2.0 provides a new Integrated Scripting Environment (

Page 54 - Import-Module LocalADModule

UNDERSTAND THE BASICS OF POWERSHELL 9Administering Service DeliveryPART IFIGURE 1.4 The PowerShell Integrated Scripting EnvironmentScript editorCo

Comments to this Manuals

No comments