Setting Meeting Policy in Office Communication 2007 R2 using PowerShell is this possible ?

Prashant From the UC team and came and asked me about helping him with a Script for setting Meeting Policy

in Office Communication 2007 R2.

 

The Next Statement he said was the Shock :) We do not have a PowerShell Module for Office Communication

Server 2007.

 

I said wow. Then When checked with him he gave me a Hint stating we may be able to achieve this using WMI.

I should Thank Prashant now at least :)  for the brilliant idea of WMI.

Here is how you do this.

 

I wanted user to enter the SIP address so that it is easy for us to change and keep a Track of the changes :)

 

$b=read-host

get-wmiobject -Class
MSFT_SIPESUserSetting | Where-Object {$_.PrimaryURI -like $b} | %
{$_.meetingpolicy =
"CN={XXXXXXXXXXXXXX},CN=Policies,CN=RTC
Service,CN=Services,CN=Configuration,DC=corp,DC=Contoso,DC=com";
$_.put() | out-null}

In the above example we have to specify the $b as sip:alias@contoso.com

We need to query the AD to find out the DN of the Meeting Policy to set.

 

Written by:

Naveen Vasudevan, Technical Lead, Enterprise Communications Services, Microsoft 

Have fun with Powershell and exchange and LYNC :)