Scripts By Brian T Young

  • get-ExecutionTime.ps1 by Brian T Young 21 Apr 2011 06:57 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    This script will execute the specified scriptblock the number of runs specified and reports back the average time taken in milliseconds.

  • New-LogFile.ps1 by Brian T Young 17 Apr 2011 06:41 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates a new log file with the default name format <yyyyMMdd>NewLogFile.log in the users home path. Filename and path can be specified using -filename and -path parameter. User is prompted for new filename if entered name exists. Parameter -force can be used to overwrite existing file.

  • get-directorySpace.ps1 by Brian T Young 17 Apr 2011 05:28 PM UTC
    by 2 users

    Beginner Event 8
    1 Comments

    This script checks the supplied folder name entered from command line using -folderName and collects the file name, file size, last write time and folder it resides in. Output is saved in the default file DirectorySpace.csv in the users homepath or the path specified using -output parameter. The file is opened in Microsoft Excel upon completion.

  • BYoung_CH6_Begin.ps1 by Brian T Young 14 Apr 2011 05:23 PM UTC
    by 2 users

    Beginner Event 6
    2 Comments

    This script retrieves the content of the windowsupdate.log saved in the system root folder and displays only the lines that have the word "Fatal" in them. Additional examples of the command using aliases and alternative matching commands is included.

  • BYoung_CH7_Begin.ps1 by Brian T Young 14 Apr 2011 04:54 PM UTC
    by 2 users

    Beginner Event 7
    2 Comments

    This script uses native commands to list out the remaining days until the end of the Fiscal Year. Several examples are listed in addition to the solution showing other ways to use the command and how to add paramaters for changing the Fiscal Year end date and adding an additional message, such as a rotating daily message.

  • BYoung_CH5_Begin.ps1 by Brian T Young 13 Apr 2011 09:11 PM UTC
    by 2 users

    Beginner Event 5
    2 Comments

    This script checks the supplied computer(s) entered from command line using -computer or through pipe line and collects the user name, computer name, domain name, and the operating system information. Output is saved with date the user information is collected in the specified text file and opened upon completion of script.

  • BYoung_CH4_Begin.ps1 by Brian T Young 12 Apr 2011 07:40 PM UTC
    by 2 users

    Beginner Event 4

    Script will check specified computer or computers entered from command line using -computer or through pipe line.

  • BYoung_CH3_Begin.ps1 by Brian T Young 11 Apr 2011 09:29 PM UTC
    by 2 users

    Beginner Event 3
    1 Comments

    Displays list of active event logs from local or remote machine. Results sorted in descending order by last write time. Script supports vista and later operating systems

  • BYoung_CH2_Begin.ps1 by Brian T Young 11 Apr 2011 12:13 AM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    Script checks the attributes of the designated process on specified computer(s) and returns back a list of processes that are running and can be paused and continue. Will acceppt pipeline information.

  • BYoung_CH1_Begin.ps1 by Brian T Young 08 Apr 2011 01:14 PM UTC
    by 2 users

    Beginner Event 1
    1 Comments

    Script checks the attributes of the designated process on specified computers and returns back Process name,Computer name and if process is a private build or not.

  • BYoung_CH1_ADV.ps1 by Brian T Young 08 Apr 2011 01:12 PM UTC
    by 2 users

    Advanced Event 1
    1 Comments

    Script checks the attributes of the designated process on specified computers looking for the windows spooler module and returns back computername, modulename, size of the module,the module filename, and the module file version.