Difference between revisions of "Get-adcomputer"
Jump to navigation
Jump to search
(Created page with "Used for searching objects in Active Directory # Getting computer attributes ``` Get-ADComputer -Filter 'Name -like "myhost-name*"' -SearchBase "DC=example,DC=com" -Server dc...") |
|||
Line 4: | Line 4: | ||
``` | ``` | ||
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 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 * | Get-ADComputer -Identity "myhost.example.com" -Properties * | ||
``` | ``` |
Latest revision as of 01:28, 26 January 2021
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 *