Running Lync CMDLETs within Windows PowerShell

Here is a little tip with Lync CMDLETs that can prove very useful.  Sometimes you can find yourself in Windows Powershell vs Lync Management Shell and trying to execute a task.  To your surprise the command doesn’t execute and you see that you are not running in Lync Management Shell.  Instead of closing out of the present window and finding the Lync Shell, just go ahead and execute the following command:

Import-Module Lync

This command will bring you to the Lync Management Shell from within the Windows PowerShell.  From that point you can execute any command for Lync that you want.  I went ahead and took the liberty to executing a command that you might have not see before as seen below:

Get-Help New-CsVoicePolicy -Full

Running the “Get-Help” command will give you details of what the command does for you.  So you can see here that I was interested in getting more information on command “New-CsVoicePolicy”.  So by stating the verb “Get-Help” followed by the “New-CsVoicePolicy” followed by the “-Full” command I was able to get more verbose information as to what the command “New-CsVoicePolicy” does.

Advertisements

0 Responses to “Running Lync CMDLETs within Windows PowerShell”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: