Modify msExchAssistantName (Administrative Assistant)


posted by mpetka
02-21-2013

Downloads: 149
File size: 231 B
Views: 1,122

Embed
Modify msExchAssistantName (Administrative Assistant)
  1. $Users = Get-ADUser -Filter {Enabled -eq "True" -and  msExchAssistantName -eq "none"}  
  2. ForEach ($User In $Users
  3. $dn = $user.DistinguishedName 
  4. $user=[ADSI]"LDAP://$dn" 
  5. $user.msExchAssistantName.Clear() 
  6. $user.SetInfo() 
Filed under: , ,

I had a nuber of users that we had specified (long ago) that they had the value of "none" for the msExchAssistantName attribute (visable in the GAL). I came up with this to clear the value on these users

Copyright 2012 PowerShell.com. All rights reserved.