Based on http://blogs.technet.com/b/nexthop/archive/2010/06/16/qsremoteaccess.aspx
First you will need to create a powershell script, next we will create a shortcut that runs the powershell script.
I use the following details in my script:-
******************************************************************************************************
A collection of Lync Management Shell Scripts (mostly). Created for my own reference from a combination of sources.
4 September 2013
Lync 2013 Backup Script
I have to admit the Lasse' scripting talents (and his willingness to share) has delivered some awesome scripts. Todays blog is evidence of his skills...his work is found here http://tech.rundtomrundt.com/p/lync-scripts.html
Thanks buddy!
<#
.Synopsis
This is a script to make a backup of your Lync 2013 Enterprise edition server environment.
It should be run on a windows server 2012, and a 2013 Lync server.
.DESCRIPTION
A script to backup vital components in a Lync Enterprise Edition deployment
Created by Lasse Nordvik Wedø - All rights reserved
Http://tech.rundtomrundt.com
- This script is for a Enterprise Edition Server.
- The script has only been tested in single site topology. I suspect adjustments must be made for deployments with more than one site (If anyone would do so, or let me have access to such a deployment, please let me know)
- This script has been tested with a co location of all databeses. If you require it to backup your Monitoring/archiving databases from seperate SQL servers, you must add these sources to the script.
- The script should be able to run without any modification or input, unless you want to use other paths than I have entered.
- The script must be run on a server where Lync PS is available.
- If the script must be run in a PS3 environment, and will load all nessecary modules automatically
- My script creates a directory C:\lyncbackup\, this may be edited if you like.
- Certificates will only be backed up if you allowed for this when requesting and creating certificates.
- Certificate backup is only done on the machine where the script is run
- The creation of the zipfile can take a while. The script finishes before the zipfile is finished (If anyone know how to wait for this task before quitting the script, please let me know).
- I highly recommend you test the script in your Lab, before running in your production environment
Thanks buddy!
<#
.Synopsis
This is a script to make a backup of your Lync 2013 Enterprise edition server environment.
It should be run on a windows server 2012, and a 2013 Lync server.
.DESCRIPTION
A script to backup vital components in a Lync Enterprise Edition deployment
Created by Lasse Nordvik Wedø - All rights reserved
Http://tech.rundtomrundt.com
- This script is for a Enterprise Edition Server.
- The script has only been tested in single site topology. I suspect adjustments must be made for deployments with more than one site (If anyone would do so, or let me have access to such a deployment, please let me know)
- This script has been tested with a co location of all databeses. If you require it to backup your Monitoring/archiving databases from seperate SQL servers, you must add these sources to the script.
- The script should be able to run without any modification or input, unless you want to use other paths than I have entered.
- The script must be run on a server where Lync PS is available.
- If the script must be run in a PS3 environment, and will load all nessecary modules automatically
- My script creates a directory C:\lyncbackup\, this may be edited if you like.
- Certificates will only be backed up if you allowed for this when requesting and creating certificates.
- Certificate backup is only done on the machine where the script is run
- The creation of the zipfile can take a while. The script finishes before the zipfile is finished (If anyone know how to wait for this task before quitting the script, please let me know).
- I highly recommend you test the script in your Lab, before running in your production environment
Show Assigned Users, Numbers and Policies in html
This one is a beauty!
My customer simply fires the Assigned_numbers.ps1 and gets an HTML file they can use to quickly spot DDI's, Policies etc. Since its HTML a ctrl-F assist nicely to find users and numbers
Original Script created by
Lasse Nordvik Wedø at http://tech.rundtomrundt.com/<#
.Synopsis
A script to list all used numbers in a Lync deployment
.DESCRIPTION
A script to list all used numbers in a Lync deployment
Created by Lasse Nordvik Wedø
V 1.1 - April 2012 - Added a function to count the number of users as well
V 1.2 - June 2012 - Added a function to count and the number of users not enabled for EVas well
V 1.3 - March 2013 - BugFIX + changing folder and filepath to a static value. Run this script without interaction.
V1.3.1 - Slightly Modified for my own use..by ME
Added additional columns to quickly see assigned policies
.EXAMPLE
Assigned_numbers.ps1
#>
My customer simply fires the Assigned_numbers.ps1 and gets an HTML file they can use to quickly spot DDI's, Policies etc. Since its HTML a ctrl-F assist nicely to find users and numbers
Original Script created by
Lasse Nordvik Wedø at http://tech.rundtomrundt.com/<#
.Synopsis
A script to list all used numbers in a Lync deployment
.DESCRIPTION
A script to list all used numbers in a Lync deployment
Created by Lasse Nordvik Wedø
V 1.1 - April 2012 - Added a function to count the number of users as well
V 1.2 - June 2012 - Added a function to count and the number of users not enabled for EVas well
V 1.3 - March 2013 - BugFIX + changing folder and filepath to a static value. Run this script without interaction.
V1.3.1 - Slightly Modified for my own use..by ME
Added additional columns to quickly see assigned policies
.EXAMPLE
Assigned_numbers.ps1
#>
Data Collection for As Built dumped to CSV
This is really a data collection exercise I use to collect the Lync config and ship off site to include into the AsBuilt documentation.
########################################################################
# Author: Paul B
# Purpose: Script to Dump Lync Config for As Build Documentation
# Version: 1.0
# 02/01/2013 - Release 1.0
#Change
# Instructions
# Edit the below variables to match your requirements
#
########################################################################
########################################################################
# Author: Paul B
# Purpose: Script to Dump Lync Config for As Build Documentation
# Version: 1.0
# 02/01/2013 - Release 1.0
#Change
# Instructions
# Edit the below variables to match your requirements
#
########################################################################
Get-CsDialPlan | Export-Csv c:\PB\DialPlan.csv
Get-CsVoiceNormalizationRule | Export-Csv c:\PB\normalrules.csv
Get-CsRoutingConfiguration | Export-Csv c:\PB\routes.csv
Get-CsVoicePolicy | Export-Csv c:\PB\voicepolicy.csv
Get-CsTrunkConfiguration | Export-Csv c:\PB\Trunkconf.csv
Get-CsPstnUsage | Export-Csv c:\PB\PSTNUsage.csv
Get-CsUnassignedNumber | Export-Csv c:\PB\UnAssignedNumbers.csv
Get-CsAnnouncement | Export-Csv c:\PB\UnAssignedAnnouncement.csv
Get-CsConferencingPolicy | Export-csv c:\PB\confpol.csv
Get-CsExternalAccessPolicy| export-csv c:\PB\externalpol.csv
Get-CsClientPolicy | export-csv c:\PB\clientpol.csv
Get-CsRgsAgentGroup | export-csv c:\PB\RGSAgentGroup.csv
Get-CsRgsQueue | export-csv c:\PB\RGSQueue.csv
Get-CsRgsWorkflow | export-csv c:\PB\RGSWorkFlow.csv
Get-CsRgsWorkflow | select-object Identity | Export-Csv c:\PB\RGSConfiguration.csv
Get-CsRgsHolidaySet | export-csv c:\PB\RGSHolidayset.csv
Get-CsRgsHoursOfBusiness | export-csv c:\PB\RGSHoursOfBusiness.csv
Get-CsAccessEdgeConfiguration | export-csv c:\PB\AccessEdgeConfig.csv
Get-CsAllowedDomain | export-csv c:\PB\FederationAllowedDomains.csv
Get-CsBlockedDomain | export-csv c:\PB\FederationBlockedDomains.csv
Get-CsCallParkOrbit | export-csv c:\PB\CallPark.csv
Get-CsCdrConfiguration | export-csv c:\PB\CDRConfig.csv
Get-CsVoiceNormalizationRule | Export-Csv c:\PB\normalrules.csv
Get-CsRoutingConfiguration | Export-Csv c:\PB\routes.csv
Get-CsVoicePolicy | Export-Csv c:\PB\voicepolicy.csv
Get-CsTrunkConfiguration | Export-Csv c:\PB\Trunkconf.csv
Get-CsPstnUsage | Export-Csv c:\PB\PSTNUsage.csv
Get-CsUnassignedNumber | Export-Csv c:\PB\UnAssignedNumbers.csv
Get-CsAnnouncement | Export-Csv c:\PB\UnAssignedAnnouncement.csv
Get-CsConferencingPolicy | Export-csv c:\PB\confpol.csv
Get-CsExternalAccessPolicy| export-csv c:\PB\externalpol.csv
Get-CsClientPolicy | export-csv c:\PB\clientpol.csv
Get-CsRgsAgentGroup | export-csv c:\PB\RGSAgentGroup.csv
Get-CsRgsQueue | export-csv c:\PB\RGSQueue.csv
Get-CsRgsWorkflow | export-csv c:\PB\RGSWorkFlow.csv
Get-CsRgsWorkflow | select-object Identity | Export-Csv c:\PB\RGSConfiguration.csv
Get-CsRgsHolidaySet | export-csv c:\PB\RGSHolidayset.csv
Get-CsRgsHoursOfBusiness | export-csv c:\PB\RGSHoursOfBusiness.csv
Get-CsAccessEdgeConfiguration | export-csv c:\PB\AccessEdgeConfig.csv
Get-CsAllowedDomain | export-csv c:\PB\FederationAllowedDomains.csv
Get-CsBlockedDomain | export-csv c:\PB\FederationBlockedDomains.csv
Get-CsCallParkOrbit | export-csv c:\PB\CallPark.csv
Get-CsCdrConfiguration | export-csv c:\PB\CDRConfig.csv
AD Health Check
I have been using this from before my blogging days so cant remember who the original author was, but a big thanks to you anyway
AD Health Check
Dumps results in c:\adHealth.txt
AD Health Check
Dumps results in c:\adHealth.txt
Lync Data Collection in xml
########################################################################
# Author: Paul B
# Purpose: Script to Collect Lync Data
# Version: 1.0
# 03/02/2013 - Release 1.0
#Change
# Instructions
# Edit the below variables to match your requirements
#Purpose
#Collects Lync Config Data and Dumps in c:\Backup\LyncData
########################################################################
# Author: Paul B
# Purpose: Script to Collect Lync Data
# Version: 1.0
# 03/02/2013 - Release 1.0
#Change
# Instructions
# Edit the below variables to match your requirements
#Purpose
#Collects Lync Config Data and Dumps in c:\Backup\LyncData
########################################################################
3 July 2013
Lync Performance Counters
By using the Lync Shell command CSWindowsService one is able to grab a snapshot of all the current call and conferencing activity.
Command
Get-CsWindowsService
Output
This is by no means all the Lync Counters..
If you wanted to see all the Lync Counters use the following command:
Get-Counter -ListSet “LS:*” | Select-Object
Command
Get-CsWindowsService
Output
This is by no means all the Lync Counters..
If you wanted to see all the Lync Counters use the following command:
Get-Counter -ListSet “LS:*” | Select-Object
Labels:
Counters,
CSWindowsService,
Performance,
Powershell,
PS
Subscribe to:
Posts (Atom)
