Selected topic
Administration
Prefer practical output? Use related tools below while reading.
New-ADUser -Name "John Doe" -Enabled $true -AccountPassword (ConvertTo-SecureString "password123" -AsPlainText -Force)Get-ADUserSet-ADUser -Identity "John Doe" -Department "IT"Remove-ADUser -Identity "John Doe"New-ADGroup -Name "IT Staff" -GroupScope GlobalGet-ADGroupAdd-ADGroupMember -Identity "IT Staff" -Members "John Doe", "Jane Doe"Remove-ADGroupMember -Identity "IT Staff" -Members "John Doe"New-ADComputer -Name "WIN10-01" -Enabled $trueGet-ADComputerSet-ADComputer -Identity "WIN10-01" -OperatingSystem Windows 10Remove-ADComputer -Identity "WIN10-01"New-ADOrganizationalUnit -Name "IT Staff" -Path "OU=Staff,DC=example,DC=com"Get-ADOrganizationalUnitMove-ADObject -Identity "John Doe" -TargetPath "OU=IT Staff,DC=example,DC=com"Set-ADAccountPassword -Identity "John Doe" -Reset -NewPassword (ConvertTo-SecureString "newpassword123" -AsPlainText -Force)Unlock-ADAccount -Identity "John Doe"Get-GPObjectNew-GPLink -Name "IT Staff" -Target "OU=Staff,DC=example,DC=com"Remove-GPLink -Identity "IT Staff"Get-ADReplicationErrorRepair-ADReplicationNote:
Get-Help to get more information about each cmdlet and its parameters.