Scripts By Nuno Mota

  • AdvancedEvent10 by Nuno Mota 20 Apr 2011 11:28 AM UTC
    by 2 users

    Advanced Event 10
    2 Comments

    - The function accepts piped content; - The function returns the path to the temporary file IF the user does not use the -WhatIf parameter; - The files are created in the TEMP_20110415.txt format, for example, and in C:\Windows\Temp by default. If not possible, then in C:\Temp; - If the user uses the -OpenFile switch, the temporary file will be opened in Notepad at the end of the script; - The user can use the -Encoding parameter to specify ASCII or Unicode to use when writing to the script; - The function also fully supports the WhatTf, Debug, and Verbose parameters.

  • AdvancedEvent9 by Nuno Mota 20 Apr 2011 11:27 AM UTC
    by 3 users

    Advanced Event 9

  • AdvancedEvent8 by Nuno Mota 18 Apr 2011 08:43 PM UTC
    by 3 users

    Advanced Event 8

    This script depends on: - Windows Image Acquisition Automation Library v2.0 Tool from http://www.microsoft.com/downloads/en/details.aspx?familyid=a332a77a-01b8-4de6-91c2-b7ea32537e29&displaylang=en - PowerShell Pack from http://archive.msdn.microsoft.com/PowerShellPack If these requisites are not met, the user is taken to the webpage where he/she can download them. The script: - gets all the tag information from pictures and displays it in a label next to the picture (in the GUI); - it resizes one picture or all pictures (in the same folder) at the same time to destination folder chosen by the user (using another GUI); - when the user saves the picture, all TAG information gets removed from the picture; - when the user saves a picture, its preferences are saved into a txt file in the same folder of the script. This way, the next time he/she starts the script, those preferences are read an applied; - it uses message boxes for possible errors like no pre-requisites met or the user selecting a folder with no pictures; - it allows the user to set the initial folder to gather the images using a GUI; - it allows the user to set a different folder to save the SHARE_ images using a GUI.

  • AdvancedEvent7 by Nuno Mota 15 Apr 2011 11:36 PM UTC
    by 2 users

    Advanced Event 7

    - The script can use the -VerifyUsernames parameter which will verify each username found against the Twitter website and only write the ones that do exist; - The user can also use the -URL parameter to specify any other website to search for twitter usernames; - The -LookupUsername parameter maps a username to user's "real" name and the -LookupDisplayName does the opposite. These can be used at the same time.

  • AdvancedEvent6 by Nuno Mota 15 Apr 2011 11:35 PM UTC
    by 2 users

    Advanced Event 6
    2 Comments

    - The user can use the -VerifyUsernames parameter which will verify each username found against the Twitter website and only write the ones that do exist. - The user can also use the -URL parameter to specify another website to search for twitter usernames

  • AdvancedEvent5 by Nuno Mota 13 Apr 2011 09:44 PM UTC
    by 2 users

    Advanced Event 5

  • AdvancedEvent4 by Nuno Mota 13 Apr 2011 09:43 PM UTC
    by 2 users

    Advanced Event 4
    2 Comments

    The script will create a CSV or HTML report in a location chosen by the user using a GUI.

  • AdvancedEvent3 by Nuno Mota 11 Apr 2011 09:11 PM UTC
    by 2 users

    Advanced Event 3
    1 Comments

    If user doesn't use the -LogName and -ETLLogLocation parameters, then check for all classic event logs and all ETL diagnostic logs. If the user uses the -ETLLogLocation parameter, he/she can query an individual ETL log file such as "C:\Windows\System32\setup.etl". User can user the -Computer, -ComputerList and -QueryAD parameters to check remote computers. User can filter events by Provider, ID or Severity.

  • AdvancedEvent2 by Nuno Mota 08 Apr 2011 08:34 PM UTC
    by 2 users

    Advanced Event 2
    3 Comments

  • AdvancedEvent1 by Nuno Mota 04 Apr 2011 07:03 PM UTC
    by 3 users

    Advanced Event 1
    3 Comments

    Script for the 2011 Scripting Games: Advanced Event 1 - Finding Process Module Versions by Using PowerShell I used the Invoke-Command method for both local/remote machines as this makes the code fully reusable, simpler and fully workable with remote machines.