Saturday, 3 June 2023

Powershell-how to find proxy address in active directory powershell

 how to find proxy address in active directory powershell


Get-ADUser -Filter * -Properties proxyAddresses | ForEach {

    ForEach ($Address in $_.proxyAddresses) {

        [pscustomobject]@{

            User = $_.Name

            ProxyAddress = $Address

        }

    }

} | Export-Csv -Path "C:\ProxyAddresses.csv" -NoTypeInformation

No comments:

Post a Comment