Creating Microsoft Lync Server 2010 Objects

Windows PowerShell has some pretty strict standards when it comes to naming things. As you probably know by now, every PowerShell cmdlet consists of a verb and a noun. Not only that, but there are guidelines that define how a developer goes about choosing nouns, and some pretty strict guidelines that determine the verbs you…


Assigning Policies

  So how do you grant (assign) policies? Well, to begin with, it’s important to keep in mind that the only policies that need to be assigned are the per-user policies. When you create a site, service, or global policy those policies are automatically assigned at the time your create them. If you create a…

2

Filter vs. Where-Object

In this day and age, no one likes being told what to do. For instance, in the Microsoft Lync Server 2010 PowerShell documentation we invariably use the -Filter parameter or the -LdapFilter parameter any time we want to retrieve a targeted collection of user accounts. For example, if we want to return a collection of…


Retrieving Active Directory and Microsoft Lync Server 2010 User Accounts

  After you get Microsoft Communications Server up and running, you probably won’t find yourself having to manage several hundred sets of Address Book server configurations or thousands of conferencing policies. Consequently, the fact that the cmdlets used to manage these objects don’t offer a lot of ways to filter the returned information (beyond simple…


Listing All the Values in a Multi-Valued Property

So you’re interested in taking a peek at the global file transfer filter configuration settings used in your organization; to be a little more specific, you’d like to see all the file types (as determined by file extension) that users are not allowed to transfer to one another using Microsoft Lync. As it turns out,…


Setting Property Values

If you’ve worked with Windows PowerShell in the past then you may have gotten used to changing a property value for an object by using commands like these: $x = Get-ChildItem C:\Scripts\Test.ps1$x.IsReadOnly = $True What happens when you run a couple of commands like this? That’s easy: first you create an object reference (a variable…


Scopes and Filters

Scopes and Filters   Suppose you’re a typical English-speaking American and you get the opportunity to live and work in Rome for a year. Could you survive without learning to speak Italian? Maybe. Would you be better off if you took a little time to sit down and learn some Italian? Definitely. When in Rome,…

1

Listing the Microsoft Lync Server 2010 Cmdlets

Here’s a question for you: how can you list just the Microsoft Lync Server cmdlets? That’s actually a pretty good question. After all, Windows PowerShell ships with some 270+ cmdlets and functions, and then Micro­soft Lync Server adds another 540 or so to the mix. How in the world can you identify which cmdlets are…

2

Getting Help for the Microsoft Lync Server 2010 Cmdlets

  Early on in the development of the Microsoft Lync Server implementation of Windows PowerShell, everyone was talking about a “whopping” total of 300 cmdlets, tops, and the help writers confidently assured everyone that all the cmdlets would be documented by pre-beta. And then the product started to grow. And change. And then grow and…


All About Identities

  Some time ago one of the authors had to go through the always-enjoyable experience of getting cable television hooked up to her new house. This involved disconnecting the cable from her old residence and then setting up a connection at the new house. Before the cable company could do any of this the service…