Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Get IE Proxy settings configured in a group of computer based on specific OU ?

$
0
0

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


Viewing all articles
Browse latest Browse all 6937

Trending Articles