PowerShell: Get all computers in AD

#Get all computers in AD
Get-ADComputer -Filter * -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap –Auto

#Get all computers in AD starting in specific OU
Get-ADComputer -Filter * -Property * -SearchBase "CN=Computers,DC=kneefel-ict,DC=local" | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap –Auto

#Get all computers in AD that start with SRV
Get-ADComputer -Filter "SRV* -Property * | Format-Table DNSHostName,IPv4Address,OperatingSystem,OperatingSystemVersion,OperatingSystemServicePack -Wrap –Auto

Geef een antwoord

Het e-mailadres wordt niet gepubliceerd.