'Blank Line in ProxyAddress AD Attributes

I made Powershell script for update de ProxyAdrress attribute in the AD, but the script save a extra blank line. How can a remove that blank line?



Solution 1:[1]

Assuming you are using split for separating two proxy addresses. Same Blank Space I am also getting if I am using –split “,” enter image description here

Solution: Do not use -split “,” Getting the expected output enter image description here

Reference : https://activedirectorypro.com/how-to-bulk-update-proxyaddresses-attribute/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MadhurajVadde-MT