Browse by Tags

Related Posts
  • 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: Assign Line URIs to Multiple Users

    Submitted by Scott Stubberfield and Nick Smith, Microsoft When you enable a user for Enterprise Voice (Microsoft’s implementation of Voice over IP) you also need to assign that user a line URI (i.e., a telephone number). Assign a line URI to one user? Here’s a command that can do that...
  • 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: 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 a Response Group with a Hunt Group

    This script shows how to build a very simple main line number covered by two receptionists. This sample uses some of the new features of the Response Group application in Microsoft Lync Server 2010: · Attendant routing , in order to route all the calls to the agents regardless of their presence...
  • 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: Return Information about Users in a Single OU

    Microsoft Lync Server 2010 provides two cmdlets – Get-CsUser and Get-CsAdUser – that return information about user accounts. (Get-CsUser returns information only for user accounts that have been enabled for Lync Server; Get-CsAdUser returns information for all your Active Directory user accounts...
  • Blog Post: List All the Microsoft Lync Server 2010 Cmdlets and the RBAC Roles Those Cmdlets Have Been Assigned To

    Submitted by Cezar Ungureanasu, Microsoft Cezar Ungureanasu is a Program Manager (make that the Program Manager) for the Microsoft Lync Server 2010 implementation of Windows PowerShell. Not too long ago, Cezar asked us if we could write a script that could take all the Lync Server cmdlets and determine...
  • 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: 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: Grant Dial Plans and Voice Policies to Multiple Users

    Submitted by Scott Stubberfield and Nick Smith, Microsoft In order to take advantage of Enterprise Voice (Microsoft’s implementation of Voice over IP) users need, among other things, to be assigned a dial plan and a voice policy. Dial plans and voice policies can easily be assigned to individual...
  • 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: 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: Move or Enable Multiple User Accounts

    Submitted by Scott Stubberfield and Nick Smith, Microsoft Windows PowerShell makes it easy for you to enable a new user for Microsoft Lync Server 2010, and makes it just as easy for you to move a single user account from one Registrar pool to another. But what if you need to perform these user...
  • 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: 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: The Lync Server Deleteomatic

    Have Fun and Delete Things, Too: The All-New Lync Server Deleteomatic Between the Lync Server Management Shell, the Lync Server Control Panel, and all the assorted Lync Server Resource Kit tools you're probably thinking, "You know, I already have all the Lync Server management tools I could...
  • 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: 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...
  • 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: 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: Export Lync Contacts to Excel

    This script exports contacts from Microsoft Lync 2010 to a Microsoft Excel worksheet. Requirements: · Lync 2010 must be running and you must be signed in. · The Microsoft Lync 2010 SDK must be installed on the client machine. Download the Lync 2010 SDK . · You must...
  • Blog Post: Add 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 #Define WMI Put options $PutOptions = New-Object System.Management...
  • 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...