Scripts By Bill Ehardt

  • Measure-Sleep by Bill Ehardt 22 Apr 2011 12:49 AM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    Function to verify how long Start-Sleep really sleeps. Will ask for parameters if not given and will round the output to the nearest tenth of a millisecond

  • New-Logfile by Bill Ehardt 21 Apr 2011 04:32 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    Creates a new logfile based on date in a specified directory

  • Export-Directory by Bill Ehardt 19 Apr 2011 10:04 PM UTC
    by 2 users

    Beginner Event 8

    This function will grab a list of all files in a given directory, export them to a csv file with the directories name, and open the file in excel.

  • measure-datediff by Bill Ehardt 16 Apr 2011 01:58 AM UTC
    by 2 users

    Beginner Event 7
    1 Comments

    Measures how many days until a given date, with customizable date and output message

  • Beginner 6 by Bill Ehardt 16 Apr 2011 01:32 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    Looks for any string "FATAL" in windows update log. Please note that in the screenshot shown, there is an Warning that says "not fatal" so I added case sensitivity.

  • begginer5 by Bill Ehardt 15 Apr 2011 04:36 AM UTC
    by 2 users

    Beginner Event 5

    Script to be run locally, will get User, computer name, domain, OS, and when the data was last run. Will output a file with named <computer>.txt

  • Beginner Event 4 by Bill Ehardt 14 Apr 2011 01:47 AM UTC
    by 2 users

    Beginner Event 4
    1 Comments

    Should be used with a textfile called servers.txt, which contain all the servers to check. Made a one liner because I didn't think it needed commenting, parameters, etc

  • Get-Pausableservices by Bill Ehardt 09 Apr 2011 05:37 PM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    Function to show pausable services on local or remote system, can also filter by current service state. Locally it is a one liner -> get-service | ? {$_.canpauseandcontinue -eq $true}, but added parameters and switch functionality to make it more robust.

  • get-privatebuild by Bill Ehardt 09 Apr 2011 04:42 PM UTC
    by 2 users

    Beginner Event 1
    1 Comments

    Function to determine if a process is using a private build of an executable