May 2007
Beginner
320 pages
8h 23m
English
In this exercise, we create nine temporary user accounts using concatenation. We specify values for the users from a text file and populate attributes on both the Address tab and the Telephone tab.
Open Notepad or your favorite Windows PowerShell script editor.
Use the Get-Content cmdlet to open the OneStepFurther.txt file. Use the path argument to point to the exact path to the file. Hold the array that is created in a variable called $aryText. This line of code is shown here:
$aryText = Get-Content -Path "c:\labs\ch7\OneStepFurther.txt"
Create a variable called $strUser. This will be used to determine the class of object to create in Active Directory. Assign the string "user" to this variable. This line ...
Read now
Unlock full access