copy msRTCSIP-PrimaryUserAddress


hello

i need copy (sip) msrtcsip-primaryuseraddress proxyaddress (mail) field in particular ou.

thank you

eva

you may use without activedirectory module.

$ou = "ldap://ou=users,dc=contoso,dc=com" $filter = "(msrtcsip-primaryuseraddress=*)" $searcher = new-object adsisearcher([adsi]$ou , $filter)  $searcher.findall() | foreach { 	$user = $_.getdirectoryentry() 	$user.mail = $user."msrtcsip-primaryuseraddress" 	$user.setinfo() }



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL