Get-adcomputer
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 *