Get-adcomputer

From UVOO Tech Wiki
Revision as of 01:28, 26 January 2021 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Used for searching objects in Active Directory

Getting computer attributes

Get-ADComputer -Filter 'Name -like "myhost-name*"' -SearchBase "DC=example,DC=com" -Server dc1.example.com -Properties IPv4Address
Get-ADComputer -Filter 'Name -like "myhost-name*"' -SearchBase "DC=example,DC=com" -Server 10.x.x.x
-Properties IPv4Address
Get-ADComputer -Identity "myhost.example.com" -Properties *