Gets one or more Active Directory groups.
Gets one or more Active Directory groups.
Example 1: Get all computer accounts using a filter
Get-ADComputer -Filter *
Example 2: Get specific computer that shows all properties
Get-ADComputer -Identity "DC001" -Properties *
Example 3: 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.
Creates a new Active Directory computer object.
Example 1: 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"