Scripts By Scott A. Alvarino

  • sendto-tempfile.ps1 by Scott A. Alvarino 20 Apr 2011 07:26 PM UTC
    by 2 users

    Advanced Event 10
    1 Comments

    This function saves the pipeline to a temp file and lets you immediately view if a value of notepad is supplied for -value

  • create_log_user&date_included by Scott A. Alvarino 19 Apr 2011 06:13 PM UTC
    by 3 users

    Advanced Event 9
    1 Comments

    This script creates a log file inside the users my documents folder that has a folder named hsglogfiles. If folder or file not created it will create it on its own.

  • PS_Command_Average_timecounter by Scott A. Alvarino 19 Apr 2011 04:51 PM UTC
    by 2 users

    Beginner Event 10
    2 Comments

    This script checks the average time it takes to complete. you can supply t a command as a argument or you don't have to put an argument and will run the command from the event showing you the average time for that.

  • create_logfile_withdate by Scott A. Alvarino 19 Apr 2011 03:52 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates a log file with todays date formatted yyyymmdd , If file is already there it asks user to rename it to something else.

  • get-fileinfoFromPath by Scott A. Alvarino 19 Apr 2011 02:51 PM UTC
    by 2 users

    Beginner Event 8
    1 Comments

    Script to get files in a directory, you get the name, length, and last modified date. A function was created named Get-FilesInfoFromPath and uses one argument as the directory to scan then puts in a csv file and opens with excel

  • get-win_4classicLogs_lastwrite_size by Scott A. Alvarino 12 Apr 2011 03:25 PM UTC
    by 2 users

    Beginner Event 3
    2 Comments

    This script runs locally and calls the get-winevent commandlet

  • identify_service_that_can_pause by Scott A. Alvarino 12 Apr 2011 02:25 AM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    With this script you can run locally or against a remote machine for services than can be paused, this shows the a a switch is used in two ways to get either all services or just running services or stopped or just all services!!! www.techjunkie.tv www.scottalvarino.com

  • Finding Process Module Versions by Using PowerShell by Scott A. Alvarino 11 Apr 2011 06:17 PM UTC
    by 2 users

    Advanced Event 1
    1 Comments

    This script pulls a computer list from a file in your home directory named computers.txt and then pulls the fileversion info for the module WINSPOOL.DRV from the notepad process. If you dont have a computers.txt file to do more than one computer you can use the computer name as an argument when you run script.

  • Use PowerShell to Identify Private Builds of Software by Scott A. Alvarino 11 Apr 2011 04:56 PM UTC
    by 2 users

    Beginner Event 1
    2 Comments

    this script pulls privatebuild information either from the local host or from remote machines if you use the computers.txt file in your home directory.