This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Request = New-Object System.DirectoryServices.Protocols.SearchRequest | |
$Request.DistinguishedName = $RootContainer | |
$Request.Filter = $SearchFilter | |
$Request.Scope = "Subtree" | |
$Request.Attributes.Add("distinguishedName") | Out-Null | |
$Request.Attributes.Add("objectclass") | Out-Null | |
$Request.Attributes.Add("mail") | Out-Null | |
$Request.Attributes.Add("objectguid") | Out-Null | |
$Request.Attributes.Add("msrtcsip-primaryhomeserver") | Out-Null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-UserPrincipal($userName) | |
{ | |
$dsam = "System.DirectoryServices.AccountManagement" | |
$rtn = [reflection.assembly]::LoadWithPartialName($dsam) | |
$cType = "domain" #context type | |
$iType = "DistinguishedName" | |
$dsamUserPrincipal = "$dsam.userPrincipal" -as [type] | |
$principalContext = new-object "$dsam.PrincipalContext"($cType,$RootDomain) | |
Write-Host Looking for DN $UserName in Container $principalContext.Name | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Populate-UserObject($UserArg) | |
{ | |
$thisUser = new-Object($t + ".User") | |
$thisUser.Name = $UserArg.Name | |
$thisUser.Email = $UserArg.EmailAddress | |
$thisUser.ID = $UserArg.Guid | |
$innerObject = $UserArg.GetUnderlyingObject() | |
$thisUser.SIP = $innerObject."msRTCSIP-PrimaryUserAddress" | |
return $thisUser | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Rtc.Collaboration; | |
using System; | |
namespace SimpleUserUCMA | |
{ | |
class Program | |
{ | |
private const string sipaddress = "sip:from@domain.com"; | |
private const string username = "USERNAME"; | |
private const string password = "PASSWORD"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//add the using decalarion | |
using Microsoft.Lync.Model; | |
//then, at some point in your application, create a LyncClient object and get a reference to the running Lync Client. | |
//(one of the nice things about making CWEs is that you can rely on the Lync Client being installed & running! | |
var lyncClient = LyncClient.GetClient(); | |
//There's loads of functionality here. For instance, managing the user contact lists can be done by getting a reference to | |
//the Contact Manager | |
ContactManager = lyncClient.ContactManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
#Lync 2010 | |
[HKEY_CURRENT_USER\Software\Microsoft\Communicator\ContextPackages\{12345-YOUR-GUID-HERE-54321}] | |
"Name"="The name of your CWE" | |
"InternalURL"="http://thoughtstuff.co.uk/internal.html" | |
"ExternalURL"="http://thoughtstuff.co.uk/external.html" | |
"ExtensibilityWindowSize"=dword:00000001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Office\Lync\Security\Trusted Sites\thoughtstuff.co.uk] | |
"http"=dword:00000001 | |
"https"=dword:00000001 | |
#This example allows both http and https traffic to the thoughtstuff.co.uk domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plenom.Components.Busylight.Sdk; | |
using System.Threading; | |
namespace ThoughtStuff.BusylightSDK | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Instantiate BusyLightController for either Lync or UC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plenom.Components.Busylight.Sdk; | |
using System.Threading; | |
namespace ThoughtStuff.BusylightSDK | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Instantiate BusyLightController for either Lync or UC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plenom.Components.Busylight.Sdk; | |
using System.Threading; | |
namespace ThoughtStuff.BusylightSDK | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Instantiate BusyLightController for either Lync or UC: |
OlderNewer