Scripts By Alex McFarland

  • Set-TempFile by Alex McFarland 20 Apr 2011 07:27 PM UTC
    by 2 users

    Advanced Event 10
    1 Comments

    Writes data to an automaticly generated temporary file, in either ASCII or Unicode format. Data may come from the pipeline or a command line parameter. Grading Criteria: -Advanced function, complete with comment-based Help. -Accepts piped content. -Returns the path to the temporary file. -The temporary file has a temporary name, and resides in the temporary folder. -Function is appropriately named. -Has a switch that will display the content of the temporary file in Notepad. -Supports an encoding parameter and support ASCII and Unicode as encoding types. -Supports the whatif, debug, and verbose parameters.

  • Advanced_Event8.ps1 by Alex McFarland 20 Apr 2011 01:28 AM UTC
    by 2 users

    Advanced Event 8
    1 Comments

    Advanced Event8. Satisfies all optional and mandatory requirements, although I experienced occasional errors stripping the metadata due to GDI (errors are trapped)

  • Get-SQLSatTwitterCSV by Alex McFarland 16 Apr 2011 08:47 PM UTC
    by 2 users

    Advanced Event 7
    1 Comments

    Advanced Event 7 of the 2011 Scripting games. Fulfills all required functionality, and all "extra points" options. Additionally has the option to specify the CSV file location, open the resulting file in notepad, and search with wildcards.

  • Get-SQLSatTwitterID by Alex McFarland 16 Apr 2011 08:42 PM UTC
    by 2 users

    Advanced Event 6

    Advanced Event 6 of the 2011 Scripting games. Fulfills all requirements, and all extra points options, in addition to several extra options, including a "switch" to open the file in notepad, and the option to specify the output location of the file.

  • New-HSGLogFile by Alex McFarland 15 Apr 2011 05:11 AM UTC
    by 2 users

    Advanced Event 9

    Writes a log file in the HSGLogFiles folder under the users "My Documents" folder. Logfile is named as YYYYMMDD_USERNAME.log. Also fufills all of the "extra points" criteria: -Automatically creates the HSGLogFiles directory. -Detects if the HSGLogFiles directory exists. If it does not exist, it is created. -If the HSGLogFiles directory does exist, it is handled gracefuly.

  • Get-Windows7UpgradeInfo.ps1 by Alex McFarland 14 Apr 2011 05:52 AM UTC
    by 2 users

    Advanced Event 5
    1 Comments

    Uses a combination of WMI, DxDiag.exe, and PowerShell remoting to test one or many machines for Windows7 upgrade eligibility.

  • Get-DependentServices.ps1 by Alex McFarland 11 Apr 2011 03:48 AM UTC
    by 2 users

    Advanced Event 2

    Script to parse all running services and their dependent services. Works with input from the pipeline, from an array of computers, or can search active directory for all machines. Requires elevation, as I bumped into occasional issues parsing services dependent on DCOM without it. Added a switch to bypass the check for an elevated account, as most information can be returned with a standard user.

  • Get-SvcHostInfo by Alex McFarland 08 Apr 2011 06:41 AM UTC
    by 3 users

    Advanced Event 4

    Script to retrieve all svchost.exe processes, provide memory statistics, startup info, and a list of all hosted services. By default, will output objects, but can be made to output a friendly report to screen or text file.

  • Advanced3_2011.psm1 by Alex McFarland 07 Apr 2011 06:44 AM UTC
    by 2 users

    Advanced Event 3
    1 Comments

    PowerShell Module containing the Get-EventLogData function.

  • Advanced1_2011.psm1 by Alex McFarland 06 Apr 2011 01:10 AM UTC
    by 3 users

    Advanced Event 1
    4 Comments