Get-ADComputer

The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers.

[PS] import-module activedirectory

 

Search for computer with specific IP address

[PS] Get-ADComputer -SearchBase ‘CN=Computers,DC=DOMAIN,DC=LOCAL’ -Filter * -Prop IPv4Address | Where-Object { $_.IPv4Address -like “10.10.0.*” }

Show all available properties for specific computer account:

[PS] Get-ADComputer pc-name  -Properties *

Search for a computer account using Filter parameters which uses the powershell expression language to write query strings.

[PS] Get-AdComputer -filter {(Name -Like “Office*”) -And (Location -eq “SA”)} 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + 9 =