$DirObj.PutEx ADS_PROPERTY_DELETE

Hi

is it possible to delete values with Powershell $DirObj.PutEx, i could not find any examples regarding powershell

Would like to remove old SMTP and SIP Adresses (but keep everything else) and add new SMTP,SIP and old mail as smtp.

	$ArrayRemoveProxyAddresses = New-Object System.Collections.Generic.List[string]
	$ArrayRemoveProxyAddresses.Add($RemoveOldSMTPAddresse)
	$ArrayRemoveProxyAddresses.Add($RemoveOldSIPAddresse)
	
	$DirObj.PutEx('ADS_PROPERTY_DELETE', 'proxyAddresses', $ArrayRemoveProxyAddresses)
	$DirObj.SetInfo()
	
	

Parents Reply Children
No Data