• Blog Post: Demo Scripts for Using Remote Windows PowerShell to Manage Office 365 Now Available

    A set of sample scripts that enable users to explore the use of remote Windows PowerShell as a tool for managing Office 365 in general, and Lync Online in particular, are now available on the Microsoft Download Center. Author: Barry Castle, Sr. Product Marketing Manager Reviewer: Greg Stemp, Sr...
  • Blog Post: List Connections to Registrar Pools

    Submitted by Scott Stubberfield and Nick Smith, Microsoft So just who is connected to your Registrar pool, and how many people are connected to Pool A vs. Pool B? Don’t ask us; we have no idea whatsoever. Instead, you should ask Scott Stubberfield and Nick Smith, who’ve written a script...
  • Blog Post: Add a Contact

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. #Contributed by Nick Smith, Microsoft #Supported Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select * from...
  • Blog Post: List the Roles that Include a Specific Cmdlet

    Role-Based Access Control (RBAC) is one of the cool new features included in Microsoft Lync Server 2010. RBAC gives you fine-grained control over the delegation of administrative rights; you do this by creating a universal security group in Active Directory, configuring that group as an RBAC role, then...
  • Blog Post: Remove a Contact Group

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. # Contributed by Nick Smith, Microsoft # Supported Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select *...
  • Blog Post: Remove a Contact

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. #Contributed by Nick Smith, Microsoft #Supported Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select * from...
  • Blog Post: Remove a User from an RBAC Group

    OK, so you assigned Ken Myer the CsArchivingAdministrator role, one of the Role-Based Access Control (RBAC) groups that is automatically created when you install Microsoft Lync Server 2010. Note . If you have no idea what a Role-Based Access Control group is then you should take a peek at the article...
  • Blog Post: Assign Active Directory Phone Numbers to Line URIs

    To see a full explanation of how these scripts work, see the article Active Directory Phone Numbers and Line URIs: Together at Last! http://blogs.technet.com/b/csps/archive/2011/02/01/howtoadphonetolineuri.aspx Convert a Phone Number to a Line URI and Assign to User This script converts a...
  • Blog Post: Determine Whether or Not a Number has Been Assigned to a Call Park Orbit

    When you work at Microsoft you often find yourself involved in truly fascinating discussions. For example, just the other day a couple of us were sitting around talking about the call park service when someone posed this question: does the Get-CsCallParkOrbit cmdlet provide an easy way for you to determine...
  • Blog Post: List All the Users in a Site

    How do I list all the users with accounts in a particular site? Hmmm, that is an interesting question: how do you list all the users who have accounts in a particular site? Note . Not that we wish to imply that other questions aren’t interesting; as we all know, there are no dumb questions...
  • Blog Post: Return the Effective Policy Assignments for a User

    You say you want to know which Microsoft Lync Server 2010 policies have been assigned to the user Ken Myer? Well, that’s easy enough; all you have to do is run the following command: Get-CsUser "Ken Myer" In return, Windows PowerShell should show you information similar to this: VoicePolicy...
  • Blog Post: Assign a Policy to All the Users in a Security Group

    When it comes time to assign per-user policies, those of us here at Microsoft thought of everything. For example, if you take a look at the article Assigning Policies you’ll see how per-user policies can be assigned to a single user; to all the users with accounts in a specified OU; to all the...
  • Blog Post: Check if a Contact Exists

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. #Contributed by Nick Smith, Microsoft #Supported Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select * from...
  • Blog Post: Connect to Microsoft Lync Server 2010 Remote PowerShell from the Desktop

    By Nick Smith, Microsoft Before running this script, ensure that the client meets all the requirements for a remote connection to Windows PowerShell. Here are the requirements: · Windows PowerShell v2.0 · .NET Framework 2.0 Service Pack 1 · Windows Remote Management...
  • Blog Post: List the Users and Client Endpoint Versions Connected to a Registrar Pool: Remote Connection

    Nick Smith and Scott Stubberfield have updated a previous script of theirs which lists all the users connected to a Registrar pool along with the client version of the endpoint they used to log on to the system. According to Nick, updates made since the time the previous script was published include...
  • Blog Post: Create and Configure Users for Synthetic Transactions

    Submitted by Antenehe Temteme, Microsoft This script will perform the following actions: 1. Create Active Directory users 2. Enable those users for Lync Server 2010 3. Create health monitoring configuration for use with synthetic transactions when they are run from System Center...
  • Blog Post: List All the Users Who Use a Specific Gateway

    Back here at the Windows PowerShell cave on the Microsoft campus we’ve set up an internal SharePoint site where people can make suggestions for Microsoft Lync Server 2010 scripts they’d like someone to write. Note . In case you’re wondering, the Windows PowerShell cave is an exact...
  • Blog Post: Return All the Users in Your Domain

    Our primary motivation in putting together this warehouse of scripts was to address issues raised by customers; you know, questions like How Do I List All the Users With an Account in a Particular Site? or How Do I Unassign an RBAC Role? So how many customers have asked the question How Can I List All...
  • Blog Post: Remove a Contact Distribution Group

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. #Contributed by Nick Smith, Microsoft #Supported Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select * from...
  • Blog Post: Create a Universal Security Group

    So you say that you’d really like to know how to create a group that can be used for a custom Role-Based Access Control (RBAC) role? Well, let’s see what we can do to help you out. Note . You say what you’d really like to know is this: what the heck is a custom Role-Based Access...
  • Blog Post: Check if a Contact Group Exists

    For more information on using this script, see the article Adminstratively Managing User Contact Lists by Nick Smith. #Support Versions: Office Communications Server 2007 R2 #Get User Information $User = Get-WmiObject -Query "Select * from MSFT_SIPESUserSetting where PrimaryURI = '...
  • Blog Post: Remove a User from All RBAC Groups

    In another script located in this warehouse ( Unassign an RBAC Role ) we show you how to unassign a Role-Based Access Control (RBAC) role that has been assigned to a user. That’s a pretty useful script, and it works great, as long as you know which RBAC role that user has been assigned. Note...
  • Blog Post: Prepare for Response Group Restore

    When you try to restore the Response Group configuration file after a backup, the restore fails because the contact objects already exist in Active Directory. This script lists the Response Group contact objects in Active Directory and allows you to delete those objects before restoring. To run...
  • Blog Post: Find the Number of Users Assigned to Your Per-User Policies

    A koan is a riddle used by Zen Buddhists to help focus the mind during meditation and, with any luck, to help the initiate develop intuitive thinking. Some of the more famous Zen koans include: "Two hands clap and there is a sound; what is the sound of one hand?" "What is Buddha?" Dongshan...
  • Blog Post: List the Users and Client Endpoint Versions Connected to a Registrar Pool: Direct Connection

    Submitted by Scott Stubberfield and Nick Smith, Microsoft Nick Smith and Scott Stubberfield have updated a previous script of theirs which lists all the users connected to a Registrar pool along with the client version of the endpoint they used to log on to the system. According to Nick, updates...