Module 02-Lesson 1: Active Directory (AD DS) Administration Cmdlets in PowerShell

Опубликовано: 12 Октябрь 2024
на канале: A Computer Guru
2,972
26

Automating Administration with Windows PowerShell is a series of course with Microsoft Official Courseware Material. To be become Zero to Hero in PowerShell please follow along my channel.

PowerShell Scripting For Beginners || Module 02: Cmdlets for administration || Lesson 1: Active Directory administration cmdlets ||

PowerShell Tutorial Playlist :
   • Automating Administration With Window...  

📌 Subscribe to A Computer Guru channel for more Videos.
   / acomputerguru  

In this video i will be covering the following topics:

1. User management cmdlets
Cmdlet - Description
New-ADUser - Creates a user account
Get -ADUser - Retrieves a user account
Set-ADUser - Modifies properties of a user account
Remove-ADUser - Deletes a user account
Set-ADAccountPassword - Resets the password of a user account
Set-ADAccountExpiration - Modifies the expiration date of a user account
Unlock-ADAccount - Unlocks a user account that has been locked after exceeding the accepted number of incorrect sign-in attempts
Enable-ADAccount - Enables a user account
Disable-ADAccount - Disables a user account

Example:
Get-ADUser -Identity janedoe -Properties Department,EmailAddress
Get-ADUser -Filter * -Properties *

2. Group management cmdlets
Cmdlet - Description
New-ADGroup - Creates a new group
Set-ADGroup - Modifies properties of a group
Get-ADGroup - Displays properties of a group
Remove-ADGroup - Deletes a group
Add-ADGroupMember - Adds members to a group
Get-ADGroupMember - Displays members of a group
Remove-ADGroupMember - Removes members from a group
Add-ADPrincipalGroupMembership - Adds group membership to an object
Get-ADPrincipalGroupMembership - Displays group membership of an object
Remove-ADPrincipalGroupMembership - Removes group membership from an object

Example:
New-ADGroup -Name FileServerAdmins -GroupScope Global

3. Computer object management cmdlets
Cmdlet - Description
New-ADComputer - Creates a new computer account
Set-ADComputer - Modifies properties of a computer account
Get-ADComputer - Displays properties of a computer account
Remove-ADComputer - Deletes a computer account
Test-ComputerSecureChannel - Verifies or repairs the trust relationship between a computer and the domain
Reset-ComputerMachinePassword - Resets the password for a computer account

Example:
New-ADComputer -Name LON-CL10 -Path "ou=marketing,dc=adatum,dc=com" -Enabled $true

4. OU management cmdlets
Cmdlet - Description
New-ADOrganizationalUnit - Creates an OU
Set-ADOrganizationalUnit - Modifies properties of an OU
Get-ADOrganizationalUnit - Displays properties of an OU
Remove-ADOrganizationalUnit - Deletes an OU

Example:
New-ADOrganizationalUnit -Name Sales -Path "ou=marketing,dc=adatum,dc=com" -ProtectedFromAccidentalDeletion $true

5. Active Directory object cmdlets
Cmdlet - Description
New-ADObject - Creates a new Active Directory object
Set-ADObject - Modifies properties of an Active Directory object
Get-ADObject - Displays properties of an Active Directory object
Remove-ADObject - Deletes an Active Directory object
Renam e- ADObject - Renames an Active Directory object
Restore-ADObject - Restores a deleted Active Directory object from the Active Directory Recycle Bin
Move-ADObject - Moves an Active Directory object from one container to another container
Sync-ADObject - Syncs an Active Directory object between two domain controllers

Example:
New-ADObject -Name "JohnSmithcontact" -Type contact

Links to the previous videos:

1. Introduction to Windows PowerShell
   • PowerShell For Beginners - Course Ove...  
2. Overview and Background of Windows PowerShell
   • Module 01-Lesson 1: Overview and Back...  
3. Lab A: Configuring Windows PowerShell
   • Module 01 - Hands-On Lab A: Configuri...  
4. Understanding command syntax & Finding commands
   • Module 01-Lesson 2 & 3: Understanding...  
5. Lab B: Finding and running basic commands
   • Module 01-Hands-On Lab B: Finding and...  

📲 Follow us on Social Media:
🌏 Website: https://www.acomputerguru.com
► YouTube:    / acomputerguru  
►Facebook:   / acomputerguru4u  
►Twitter:   / acomputerguru4u  
► Instagram:   / a_computer_guru  

#powershellscripting #powershellforbeginners #acomputerguru #powershelltraining #powershelltutorial #powershell #learnpowershell #powershellautomation #devops #informationtechnology #shell #windows #windowspowershell #scripting #automation #ADUsersandGroup #ManageADObject #ActiveDirectory #OU