Scripts By vbscripter

  • Out-TempFile by vbscripter 18 Apr 2011 05:32 AM UTC
    by 2 users

    Advanced Event 10
    1 Comments

    This function saves data to a temporary file and returns path to it. The function accepts piped content and has comment-based Help.

  • CreateLogFolderAndFile by vbscripter 15 Apr 2011 02:48 PM UTC
    by 2 users

    Advanced Event 9
    1 Comments

    This script creates logs folder and file in it with a name that is based on a current date and user name. Default log folder location is My Documents folder. To create log folder in the root of system drive run script as administrator with -Public switch. To specify folder name (not a path) use -LogFolderName parameter (default value is "HSGLogFiles").

  • DateFileName by vbscripter 15 Apr 2011 03:06 AM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This script creates file with a name that is based on a current date. You can specify folder path with -Folder parameter. #Script without paramters saves a file in a temporary folder. If file already exists you'll be asked for new file name.

  • Get Twitter Names by vbscripter 14 Apr 2011 04:16 PM UTC
    by 2 users

    Advanced Event 6
    1 Comments

    This script gets Twitter names from a web page and saves them to a file. Use -OutFile parameter to specify output file path. Script without parameters saves data to file "TwitterNames.txt" in the user profile folder.

  • Files list by vbscripter 13 Apr 2011 05:31 PM UTC
    by 2 users

    Beginner Event 8

    This script writes files list in the folder to CSV file and opens CSV file in Excel. First parameter -Folder specifies full path to folder, second parameter -CsvPath specifies full path to CSV file. If no folder specified script uses Windows folder. If path to CSV file is omitted temporary file will be used.

  • Fiscal year remainder by vbscripter 12 Apr 2011 02:22 PM UTC
    by 2 users

    Beginner Event 7
    1 Comments

    This script determines the number of days between the next specified date and current date. Specify date with -Day and -Month parameters. Default date is July, 31. To use custom string use -Message parameter with #Days# token for number of days. Example: beg7.ps1 -Day 31 -Month 7 -Message "#Days# days left"

  • Windows Update errors by vbscripter 12 Apr 2011 03:10 AM UTC
    by 2 users

    Beginner Event 6
    1 Comments

    This script displays fatal errors from Windows Update log.

  • Basic computer information by vbscripter 08 Apr 2011 05:51 PM UTC
    by 2 users

    Beginner Event 5

    This script collect basic computer information: user name, computer name, domain name, and the operating system information. There is the only parameter -OutFile: path to file where data wile be saved. If file path not specified data will be send to output.

  • Service accounts by vbscripter 07 Apr 2011 02:57 PM UTC
    by 3 users

    Beginner Event 4
    1 Comments

    This script displays services and accounts they use. By default script reports only services that doesn't use standard service accounts. To list all services use -all switch.

  • Daily Events by vbscripter 07 Apr 2011 11:27 AM UTC
    by 2 users

    Advanced Event 3
    1 Comments

    This script displays the most recent event from from each log that is enabled. To get complete events list run script as administrator. The single parameter -ComputerName enables to run script against remote machine.

  • Event logs info by vbscripter 06 Apr 2011 06:33 PM UTC
    by 2 users

    Beginner Event 3

    This script displays enabled logs info: log name, whether it is a classic log, log size and last write time. Parameters: -ComputerName parameter specifies computer name. Default value is "localhost"; -SortBy parameter specifies sort column: LogName, IsClassicLog, FileSize, LastWriteTime (default value). To get complete logs list run script as administrator.

  • Dependent services by vbscripter 05 Apr 2011 03:19 PM UTC
    by 3 users

    Advanced Event 2
    2 Comments

    The script displays running services and their dependent services state on the computer specified with -ComputerName parameter. Without parameters the script displays data for local machine.

  • PausableServices by vbscripter 05 Apr 2011 11:36 AM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    This script displays local services that accept a pause command. To run script against remote computer use -ComputerName parameter.

    Changes:

    Fixed category.

  • CheckPrivateBuild by vbscripter 04 Apr 2011 10:05 AM UTC
    by 4 users

    Beginner Event 1
    1 Comments

    This script checks whether computer runs private build of an application. Script without parameters checks process "notepad.exe" on local computer. Use -ProcessName and -ComputerName parameters to set process and computer name. Run script as administrator if you are not the owner of specified process.