+ All Categories
Home > Documents > 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...

Date post: 19-Dec-2015
Category:
View: 221 times
Download: 0 times
Share this document with a friend
6
Transcript

• 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"

• Display user attributes– Get-aduser jdoe– Get-aduser jdoe –properties * | more

• Add groups and members– Add-adgroupmember “Sale_Group”– Add-adgroupmember “Sale_Group” –member

jdoe


Recommended