New Microsoft ® shell environment Gives administrators more power and command in the shell...
-
date post
19-Dec-2015 -
Category
Documents
-
view
222 -
download
0
Transcript of New Microsoft ® shell environment Gives administrators more power and command in the shell...
• New Microsoft ® shell environment• Gives administrators more power and
command in the shell environment– Hence…PowerShell?
• Active Directory Module for Windows® Powershell allows for command-line and scripted operations
• Only available in Windows ® Server R2 and Windows ® 7
• Growing resources daily– http://technet.microsoft.com/en-us/
scriptcenter/powershell.aspx– http://gallery.technet.microsoft.com/
ScriptCenter/en-us/– http://technet.microsoft.com/en-us/library/
dd378937(WS.10).aspx
• Creating a user:– New-aduser
• Help– Get-help new-aduser– Get-help new-aduser –examples– Get-help new-aduser –detailed
• new-aduser jdoe• New-aduser “John Doe” –samaccountname
“jdoe” –Givenname “John” –Surname ……..
• Setting Passwords– Set-ADAccountPassword –Identity jdoe -Reset -
NewPassword (ConvertTo-SecureString -AsPlainText "p@ssw0rd" –Force)
• Change attributes for multiple users– Get-ADUser -Filter 'Name -like "*"' -SearchBase
"OU=Sale_OU,DC=MS1, DC=Local" | Set-ADUser -Description "Member of the Sales Department"