• Home
  • My Tools
  • Visio Stencils
  • Online Tools
  • PS Scripts
  • PS One Liners
  • Downloads
  • Product Review
  • About

Smarter Together

~ by I.M.H.O.

Smarter Together

Category Archives: Powershell Scripts

Whats new in Skype for Business Monitoring Tool V1.3?

03 Saturday Oct 2015

Posted by Paul Bloem in Lync 2013 Monitoring, PowerShell GUI, Powershell Scripts, Skype for Business, Skype for Business Monitoring, Skype for Business Tools, Tools, UC Sorted Tools

≈ 2 Comments

Tags

Free Monitoring, Lync Tools, Monitoring, PowerShell GUI, Skype for Business Monitoring, Synthetic Transactions, Tools

A few months back a new pet project resulted in an application called Skype for Business Monitoring Tool. Simply stated this application is a series of synthetic transactions in a PowerShell wrapper. The tool will run a selection of tests then report the results to the local event log.

Shortly after that a reporting module was added. The reporting module will compile an email report covering the previous 24 hour cycle of tests. The report includes a success vs failure rate and colour codes the ratio either green, amber or red to indicate health for each test in question.

What’s new in V1.3?

The following features have been added:-

Alert emailing

This is an alert email that is generated at the end of a test cycle if any of the synthetic transactions fail. The email consist of the Event ID and description of the error (the format is rough at present but server its purpose well – a review of this is planned)

UC Sorted Skype Monitoring
TIP
Since the FROM address isn’t checked for validity, I like to use this address to identify the Customer or Pool that’s reporting the issues. That way I can write an email rule that automatically deals with messages according to my required behaviour (eg escalate or also send to etc.). Of course you need to be sure that your email scrubbing policies allow these through.

More Tests

A total of 24 tests are now available, that equates to 12 new tests introduced in this release. These include:-Skype Monitoring Test

  • Group IM
  • Application Sharing
  • Persistent Chat
  • Data Conferencing
  • UCWA Conferencing
  • Web App Conferencing
  • Web App Anonymous Conferencing
  • Web Scheduler
  • XMPP
  • Audio Video Edge
  • Mobility IM
  • PSTN Peer-to-Peer

New “About”

A ReadMe.htm file now contains all the “About” information, version details, event ID references and notes. The ReadMe.htm file is also sent by email as the test email function

UCSorted Help File

Download

What’s planned for VNext?

A new module that monitors and reports on the Skype Server roles. The items I plan to include are as follows:-

  • Skype related Services
  • CPU usage and peaks
  • Memory usage and peaks
  • Disk usage
  • Daily report on Skype related Event Log warnings and Errors

Please do chime in if you have any suggestions or feedback.

-Sorted

Advertisement

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...

Lync RGS Emergency Failover Script

04 Tuesday Nov 2014

Posted by Paul Bloem in Powershell Scripts, RGS

≈ 2 Comments

Tags

Powershell, Response Group, RGS, Scripts

Todays script was created as a result of unending fire drills 🙂

What happens to my Response Group Calls when we have to suddenly evacuate the building?

Since the environments I come across most refers here to the DDI’s called to reach said Response Groups I have come up with the simplest solution. Basically I have a Emergency Workflow preconfigured complete with announcement and destination.

The Script offers the administrator the option to select Y or N to activate or de-activate Emergency Workflow respectively. If selecting Y, the Script then lifts the DDI from the normal Response Group Workflow and assigns it to the Emergency Workflow. Selecting N reverts the DDI to its original Workflow.

<#    
    .NOTES
    ===========================================================================
     Created on:       04/11/2014 8:13 p.m.
     Created by:       Paul Bloem
     Blog:     UCSorted.com
     Twitter twitter.com/PaulB_NZ
     Filename:         
    ===========================================================================
    .DESCRIPTION
        This script takes a DDI assigned to a RGS Workflow and re-assigns it to a Emergency Workflow - and vice versa depending on the 
        menu selection. You will need a pre-configured 
        Emergency RGS Queue, Group and Workflow. For simplicity you can configure the Emergency Queue to overflow to a destination with
        a Threshold of 0 (meaning that any calls will overflow immediatly.
        You then have the choice on the Emergency Queue to deliver the calls to another SIP address, a PSTN number (such as a cell phone)
        or to a UM enabled mailbox (Voicemail).
#>
# Script Config
Import-Module Lync
#The following Variables need to be manually edited to match your environment
$RGSWorkflow = "Support Workflow"                                    #RGS Workflow you want to failover
$RGSWorkflowDDI = "tel:+123456789"                                    #Line URI of the RGS Workflow
$EmergencyWorkflow = "Emergency - Support Workflow"                    #Name of the Emergency Workflow
$sipdomain = "@ucsorted.com"                                         #Lync Sip Domain
$ServiceID = "service:ApplicationServer:lyncFEPool1.ucsorted.com"     #Lync front end pool identity
$logfile = "c:\RGSEmergency-log.txt"                                #Specify a log file for this script

# Menu
#The Menu items below are displayed as TXT for selection purpose only. Once selected the next section (Selection Logic) is engaged
cls

Write-Host "* Set Emergency state for" $RGSWorkflow "" -ForegroundColor Cyan
Write-Host " "
Write-Host "Select one of the following options (Y\N):"
Write-Host " "
Write-Host "Y - Activate Emergency RGS" -foregroundcolor Yellow
Write-Host "N - De-Activate Emergency RGS" -foregroundcolor Yellow
Write-Host " "
$a = Read-Host "Select Y or N: "
Write-Host " "

# Selection Logic to set DDI for RGS based on Menu Selection

switch ($a)
{
    Y {
        $ActiveWorkflow = $EmergencyWorkflow
        $DeactiveWorkflow = $RGSWorkflow
    }
    N {
        $ActiveWorkflow = $RGSWorkflow
        $DeactiveWorkflow = $EmergencyWorkflow
    }
}

#Removing DDI from Active RGS
$a = Get-CsRgsWorkflow -Identity $ServiceID -name $DeactiveWorkflow
$a.LineUri = ""
set-csrgsworkflow -Instance $a

#Assigning the DDI to new Active RGS
$b = Get-CsRgsWorkflow -Identity $ServiceID -name $Activeworkflow
$b.LineUri = $RGSWorkflowDDI
set-csrgsworkflow -Instance $b

# Write to log file
$date = Get-Date
Write-output "$date, $ActiveWorkFlow, $RGSWorkflow1DDI" | Out-File -append $logfile

Write-Host "Active RGS changed to: " -NoNewline
Write-Host $ActiveWorkFlow -ForegroundColor Green
Write-Host " "

Download script

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...

Enabling users and assigning policies from CSV

22 Wednesday Oct 2014

Posted by Paul Bloem in Powershell Scripts

≈ Leave a comment

Todays post is really based on a subject I deal with at each deployment. Of course there are many scripts on the net to take care of all your Lync deployment needs, so whats different about my script?

Usually Lync is deployed in a phased manner, my script allows the administrator to enable just the bits needed for each phase of the deployment. By simply commenting out the parts that are not needed you can deploy each phase of the Lync deployment at your own pace.

Because of this approach, you can re-use the script and input CSV file and simply run just the steps you want for each phase.

So what does the script do?

Using a reference CSV input file the script does the following:

  1. Counts the number of users that will be processed based on the data in the input CSV
  2. Checks to see if the user is valid in AD
  3. Checks to see if the user is already enabled for Lync, id not then enable and move to next step
  4. Enable User for Enterprise Voice and add the Line URI
  5. Assign Client Policy to the user
  6. Assign Conferencing Policy to the user
  7. Assign Dial Plan to the user
  8. Assign Voice Policy to the user
  9. Assign External Access Policy to the user
  10. Assign Mobility Policy to the user
  11. Update the AddressBook

NOTE

  • If any of the steps fails then the failure is written to a log file
  • The input CSV and the log file paths are defined in the beginning of the script and will need to be edited to match your environment
  • It is important to match the CSV file format as the column headers are used to match the variables in the script

Download the script

The download also contains an example CSV

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
← Older posts

IMHO YouTube Channel

Follow Smarter Together on WordPress.com

Enter your email address to subscribe and receive notifications of new posts.

Join 674 other subscribers

Show your appreciation by donating

Archives

Category

ABS ABServer ADContacts Address Book AddressBook AddressBook Service Communicator contacts CX500 Devices DHCP DNS Edge Server Error Codes event id Exchange UM 2010 GAL Install Guide Lync 2013 Tools Lync Edge Lync Tools Microsoft Teams Monitoring Polycom Powershell Scripts Product Review QOS Quick Reference Guide Reskit RGS RTC Database SIP SIP Options Skype for Business Skype for Business Monitoring Skype for Business Tools SQL Teams TMG Tool Tools Troubleshoot Edge UC Sorted Tools UM Uncategorized Unified Messaging visio Visio Stencil voicemail

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Smarter Together
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Smarter Together
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    %d bloggers like this: