Gets one or more Active Directory computers.



Example: Get all computer accounts using a filter

Get-ADComputer -Filter *


Example: Get specific computer that shows all properties

Get-ADComputer -Identity "DC001" -Properties *


Example: Get all computer accounts using a filter with Operating System

Get-ADComputer -Filter * -Properties * | Select-Object Name,OperatingSystem,DistinguishedName





🔆🔆🔆🔆🔆

Creates a new Active Directory computer object.


Example: Create a new computer account in an organization unit

New-ADComputer -Name "MyServer01" -SamAccountName "MyServer01" -Path "OU=Servers,DC=rs,DC=local" -Description "My new server" -Enabled $true -OperatingSystem "Windows Server 2016 Datacenter Evaluation"