Get-ADComputer -filter {Enabled -eq $True} -Properties cn -SearchBase "OU=Production,DC=domain,DC=local" | select cn | ConvertTo-Csv -NoTypeInformation | Select-Object -skip 1 | Out-File <INSERT PATH TO .CSV FILE>
No comments:
Post a Comment