Scripts By Rich Kusak

  • New-TempFileContent by Rich Kusak 22 Apr 2011 04:58 AM UTC
    by 3 users

    Advanced Event 10
    2 Comments

    The New-TempFileContent function creates a temporary file in the Windows temp location and saves content in the file. Optionally, the file contents can be shown by use if the -Show parameter.

  • New-LogFile.ps1 by Rich Kusak 21 Apr 2011 05:14 AM UTC
    by 2 users

    Advanced Event 9

    Creates a new log file once per day. Creates parent folder if missing. Exits silently on both success and errror.

  • Resolve-TwitterName by Rich Kusak 17 Apr 2011 03:26 PM UTC
    by 2 users

    Advanced Event 7

    The Resolve-TwitterName function resolves twitter names from a specified URI by parsing the page with a regular expression. Adhoc resolution can be done by providing either the twitter full or user name as an argument on the Name parameter. Optionally, the results can be saved to a CSV file.

  • Get-TwitterName by Rich Kusak 17 Apr 2011 07:19 AM UTC
    by 2 users

    Advanced Event 6

    The Get-TwitterName function retrieves twitter user names from a specified URI by parsing the page with a regular expression.

  • Test-Windows7UpgradeEligiblity by Rich Kusak 15 Apr 2011 04:51 AM UTC
    by 2 users

    Advanced Event 5

    The Test-Windows7UpgradeEligiblity function uses WMI to collect the system information for a computer to determine if it's eligible to be upgraded to Windows 7. Additionally, the computer is tested to see if it supports the 64-bit version of Windows 7.

  • Get-ProcessStatistic by Rich Kusak 14 Apr 2011 04:54 AM UTC
    by 2 users

    Advanced Event 4

    The Get-ProcessStatistic function uses the WMI Win32_Process and Win32_Service classes to get statistical information on a process and associated services. The -ShowAsReport parameter outputs the results to a HTML report.

  • Get-EventDate by Rich Kusak 13 Apr 2011 05:10 AM UTC
    by 2 users

    Advanced Event 3

    The Get-EventDate function uses Get-WinEvent to query all classic logs and enabled ETL logs for events on the date specified.

  • Get-RunningServiceDependent by Rich Kusak 12 Apr 2011 04:00 AM UTC
    by 2 users

    Advanced Event 2

    Retrieves all running services and associated dependencies reporting on the status. Assumes that since a Windows 2008 R2 domain controller exists in the environment that access to the MS ActiveDirectory module is possible to collect server names for the function to run against.

  • Get-ProcessModule by Rich Kusak 11 Apr 2011 04:51 AM UTC
    by 2 users

    Advanced Event 1

    The Get-ProcessModule function gets a process and a specified associated module. The results are piped to the ConvertTo-Csv cmdlet to satify the requirements for advanced event 1.