Lync Custom States for TSPs ;)

Lync Custom availability states   Install The registry to add the TSP states for Lync   Regards TSPState.reg

2

List Connections and Users connected to Lync Registrar Pool

The following script could be copied to %windir%/system32 as connections.ps1 in order to run it from Lync powershell directly.   It will list all the number of connectios to the registrar pool; i have added Listing all user aliases connected to Lync within the main Function. ################################################################################################## Connections.ps1## Program to pull Lync connection information.  # This…

9

Outbound call routing time condition

In order to create an outbound route policy based on a time condition in order to prevent certain users from making PSTN calls after working hours you need to do them with powershell script and windows task scheduler   so the example below shows that i created two voice policies one called “WorkTime” and the other…

4

PowerShell script helps you to configure static IP on localmachine

This PowerShell script helps you to configure static IP on localmachine, just copy the code and past it in txt file then rename it to anyname.ps1 “static.ps1″ Don’t forget to make executionpolicy to be remotesigned using Set-ExecutionPolicy remotesigned -Confirm:$false -Force but you have to run the PowerShell console as Administrator. $NICs = Get-WMIObject Win32_NetworkAdapterConfiguration |…


Powershell script – Join domain

This script helps to join the machine to the domain local and if you want to do it remotely you can combined this script using invoke-command $credential = New-Object System.Management.Automation.PsCredential(“coex\administrator”, (ConvertTo-SecureString “P@ssw0rd <mailto:P@ssw0rd>” -AsPlainText -Force))Add-Computer -DomainName “coex.com” -Credential $credential -passthrurestart-computer


PowerShell script list and uninstall programs remotely or local machines using Primalforms to

    #Generated Form Function function GenerateForm { ######################################################################## # Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) v1.0.8.0 # Generated On: 4/15/2011 9:34 PM # Author By: Raymond ######################################################################## function listprograms { Get-WmiObject win32_product -ComputerName $text1.Text | Out-GridView } function remoteuninstall { $app = Get-WmiObject win32_product -ComputerName $text1.Text | Where-Object {$_.name -match $text2.Text} $app.uninstall()…


Compare Hotfixes installed on 2 computer using PowerShell

function hotfixcompare ($computer1, $computer2) { $node1 = Get-HotFix -ComputerName $computer1 $node2 = Get-HotFix -ComputerName $computer2 Compare-Object -ReferenceObject $node1 -DifferenceObject $node2 -Property HotFixID } hotfixcompare ex01 lyncse |sort -Property sideindicator Description of Script node1 = ex01 node2 = lyncse Sideindicator == means that the 2 nodes have the same hotfixes Sideindicator => means that the hotfix…