Scripts By Sadie Trest

  • Beginner10.ps1 by Sadie Trest 22 Apr 2011 04:34 AM UTC
    by 3 users

    Beginner Event 10
    1 Comments

    This script creates a reusable function that executes either the default command or a user supplied command a specified number of times, averages the amount of time each command took to run and returns a string containing the result in milliseconds.

  • Beginner9.ps1 by Sadie Trest 20 Apr 2011 06:15 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates a new cmdlet that may be used to create a log file based on the current date. The folder, filename and extension may be optionally specified. If nothing is specified, default values are used.

  • Beginner8.ps1 by Sadie Trest 20 Apr 2011 03:14 AM UTC
    by 2 users

    Beginner Event 8
    2 Comments

    The script creates a cmdlet that accepts two parameters: an export and file path(s). The files in the specified folders are enumerated and exported to a CSV file. The CSV file is then automatically opened with MS Excel.

  • Beginner7.ps1 by Sadie Trest 18 Apr 2011 10:20 PM UTC
    by 2 users

    Beginner Event 7

    This is a one line script that returns a string with the number of days left from now to the end of the fiscal year on July 31, 2011.

  • Beginner6.ps1 by Sadie Trest 15 Apr 2011 04:31 PM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    An extremely simple script that creates a function to search and return fatal errors from the Windows Update log

  • Beginner5.ps1 by Sadie Trest 15 Apr 2011 03:19 AM UTC
    by 2 users

    Beginner Event 5
    3 Comments

    This script opens uses a computer name, or reads a file and passes it to a cmdlet. The cmdlet opens attempts to open a session to a comptuer and retrieves environment information and saves the results in a file using a specified filename or a default filename.

  • Beginner4.ps1 by Sadie Trest 13 Apr 2011 06:33 PM UTC
    by 2 users

    Beginner Event 4
    2 Comments

    Beginner4 script to retrieve non-standard service accounts from one or more computers.

  • Beginner3.ps1 by Sadie Trest 13 Apr 2011 03:43 AM UTC
    by 2 users

    Beginner Event 3
    1 Comments

    Beginner 3 script. This script gets all of the classic and ETL diagnostic logs from a single computer or an array of computers and sortson LastWriteTime, LogSize or IsClassicLog. It can also save in TXT or CSV format

  • BeginnerEvent2 by Sadie Trest 10 Apr 2011 05:46 AM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    This script takes an optional command line argument and retrieves either ALL or just the running services that can pause or Continue

  • Beginner1 by Sadie Trest 10 Apr 2011 05:39 AM UTC
    by 2 users

    Beginner Event 1
    1 Comments

    This script will take zero, one or two command line parameters and determine whether or not the specified computer is running a specified process. If either command line parameter or both are left out, defaults are assumed for the missing parameter(s).