Get Automated First Level Support Response

by Dec 25, 2015

Here is a fun function to provide you with a good first level support response in case everyone is off for Christmas:

#requires -Version 3

function Get-FirstLevelSupportResponse
  $url = ''
  $ProgressPreference = 'SilentlyContinue'
  $page = Invoke-WebRequest -Uri $url -UseBasicParsing
  $pattern = '(?s)<br><font size\s?=\s?"\+2">(.+)</font'

  if ($page.Content -match $pattern)

You do need Internet access for this script to work.

Twitter This Tip! ReTweet this Tip!