Quantcast
Channel: ariprotheroe
Viewing all articles
Browse latest Browse all 78

Documenting a #Lync Environment

$
0
0

As a consultant I tend to do a fair amount of documentation. For the most part this is as part of a design (before deployment) discussing architecture decisions related to requirements but also as part of deployment covering the configuration of the platform whether firewall rules, DNS entries plus also Lync Policies and Settings.

Since the release of Lync Server 2010 I have primarily using my backup script and the dump function to dump each of the Get-Cs* cmdlet to dump configuration to .txt file and then I could drop then into Word Tables with minimal effort, if a bit tedious.

I’m not a person to standstill and am always improving my methodology based on what I think works, doesn’t plus also learn and see.  With my new backup script the dump function will be expanded to output to either TXT, CSV or XML.  Where I want to get to is take the dump files and be able to run them through another script to dump everything into an Excel file.  Spending a few hours copying an pasting isn’t my idea of fun.

One of the goal is for my backup script to be able to document everything about a deployed Lync environment to use as a deliverable or to understand an existing environment for a migration (for consultant) or to phone home for (for support engineers)

My friend and PowerShell guru (among other things) Flaphead has written me a quick and dirty script to take CSV dump file and import them all into Excel.  Post here

To dump Lync to CSV, Just open the Lync Server Management Shell create a new empty directory and change directory into it and run the cmdlet

foreach($i in Get-Command Get-Cs*) { if($i.CommandType -eq “Cmdlet”){if (($i.name -eq “Get-CsAdminRoleAssignment”) -or ($i.name -eq “Get-CsClientCertificate”) -or ($i.name -eq “Get-CsClientPinInfo”) -or ($i.name -eq “Get-CsRgsConfiguration”) -or ($i.name -eq “Get-CsUserPoolInfo”) -or ($i.name -eq “Get-CsBackupServiceStatus”) -or ($i.name -eq “Get-CsClientAccessLicense”) -or ($i.name -eq “Get-CsDatabaseMirrorState”) -or ($i.name -eq “Get-CsEffectivePolicy”) -or ($i.name -eq “Get-CsPersistentChatEligiblePrincipal”) -or ($i.name -eq “Get-CsPoolBackupRelationship”) -or ($i.name -eq “Get-CsPoolFabricState”) -or ($i.name -eq “Get-CsTestUserCredential”) -or ($i.name -eq “Get-CsWebTicket”)){} Else {. $i.Name | export-csv -notypeinformation $i”.csv”}}}

Firstly CSV (or text files) aren’t the best to use for Lync as they won’t dump all properties over well as some have to be expanded using | Select Object -ExpandProperty, ultimately I will rewrite a script to import from XML file to overcome this.

With regarding to my new Backup script, ‘Backup-CsServer.ps1′, I was busy in the run up before Christmas with my first Lync Server 2013 design and also study for both the new Lync Server 2013 Exams (70-336 and 70-337) passed both :) .  I will post more information nearer to General Availability (GA) of the script…hey it works for the Lync Server product group ;)



Viewing all articles
Browse latest Browse all 78

Trending Articles