Scripts By Winfried Schoierer

  • SG2011BE10V1.ps1 by Winfried Schoierer 21 Apr 2011 10:43 PM UTC
    by 2 users

    Beginner Event 10
    1 Comments

    This function calls the Start-Sleep Powershell cmdlet X times for a defined amount of seconds and measures the average execution time.

  • SG2011BE9V1.ps1 by Winfried Schoierer 20 Apr 2011 08:51 PM UTC
    by 2 users

    Beginner Event 9
    1 Comments

    This function creates an empty file with the current date (f.ex. 20110415) in the specified directory. Per default the file ending is *.txt but can be specified by an optional parameter.

  • SG2011BE8V1.ps1 by Winfried Schoierer 19 Apr 2011 08:47 PM UTC
    by 2 users

    Beginner Event 8
    1 Comments

    This function retrieves all filenames of a specified directory on the local computer and saves the information together with the size and lastwritetime to output.csv in the current directory.

  • SG2011BE7V1.ps1 by Winfried Schoierer 18 Apr 2011 08:58 PM UTC
    by 2 users

    Beginner Event 7

    It is this time a one line approch as Ed Wilson was suggesting. The script is calculating and showing the remaining days until the 31st July 2011.

  • SG2011BE6V1.ps1 by Winfried Schoierer 17 Apr 2011 09:49 AM UTC
    by 2 users

    Beginner Event 6

    #Beginner Event 6 #as Ed Wilson stated it should be short and aliases should be used:

  • SG2011BE5V01 by Winfried Schoierer 14 Apr 2011 11:37 PM UTC
    by 2 users

    Beginner Event 5
    1 Comments

    This function retrieves defined information about the computer either on the local or a remote computer and saves the information to a file. Reusable code, dot.source it or put it in your profile.

  • SG2011BE4V01.ps1 by Winfried Schoierer 13 Apr 2011 10:46 PM UTC
    by 2 users

    Beginner Event 4
    1 Comments

    This function uses Powershell to find accounts used by services on either the local or a remote computer. Reusable Code, put it in your profile or dot-source it.

  • SG2011BE3V7.ps1 by Winfried Schoierer 12 Apr 2011 07:24 PM UTC
    by 2 users

    Beginner Event 3

    Uses Get-WinEvent to list classic and ETL Eventlogs which are enabled. Final version without running remotely due to lack of time Running it without elevated rights produces no error message but some eventlogs are then missing in the output (like security eventlog)

  • SG2011BE2V1.ps1 by Winfried Schoierer 08 Apr 2011 07:14 PM UTC
    by 2 users

    Beginner Event 2
    1 Comments

    Uses Get-Service to list pausable services on locale computer final version without running remotely

  • Retrieve-Privatebuild by Winfried Schoierer 08 Apr 2011 01:20 PM UTC
    by 2 users

    Beginner Event 1
    1 Comments

    Uses Get-Process to retrieve private build information of notepad