Question : Office communicator  user script

Hi experts, I am trying to bulk remove OCS user accounts - I have a list of around 600 user accounts and I want to remove them from Office Communicator but not AD .

Does anyone know of a way via script to remove the “Enable for Office Communicator”  user Property in bulk
Our list of users contains the SIP address of the accounts affected and would like to use this as our variable.

[email protected]
[email protected]

Suggestions / scripts most welcome.

Answer : Office communicator  user script


Hey,

In theory, bearing in mind I have absolutely no way to verify this here you should be able to do it like this.

I suggest you test this line against one user first to see:

Set-QADUser "Some User" -ObjectAttributes @{"msRTCSIP-UserEnabled" = $False }

Requires:

http://support.microsoft.com/kb/968929
http://www.quest.com/powershell/activeroles-server.aspx

HTH

Chris
1:
2:
3:
4:
5:
6:
7:
8:
Get-Content "YourList.csv" | %{
  $User = Get-QADUser $_ -IncludedProperties "msRTCSIP-UserEnabled"

  If ($User."msRTCSIP-UserEnabled")
  {
    Set-QADUser $_.DN -ObjectAttributes @{"msRTCSIP-UserEnabled" = $False }
  }
}
Random Solutions  
 
programming4us programming4us