Hi,
I'd like to get some help in getting the proxy result from a specific set of computer in an OU ?
Import-Module ActiveDirectory
$Computers = Get-ADComputer -Filter * -SearchBase "OU=Application Servers,OU=Servers,DC=domain,DC=com" | Where-Object { Test-Connection $_.Name -Count 1 -Quiet }
ForEach ($Computer in $Computers) {
.
.
.
.
| Export-csv "C:\Proxy-Setting.csv" -Append -NoTypeInformation -UseCulture
}
I've created the framework of the script but not sure how to query the result based on the script above.
Ideally the result can be exported as Computername,Proxy setting, Port Number to a .CSV file
Thanks in advance