Scripts By Alex McFarland
Set-TempFile by Alex McFarland 20 Apr 2011 07:27 PM UTCby 2 users
Advanced Event 101 Comments
Writes data to an automaticly generated temporary file, in either ASCII or Unicode format. Data may come from the pipeline or a command line parameter. Grading Criteria: -Advanced function, complete with comment-based Help. -Accepts piped content. -Returns the path to the temporary file. -The temporary file has a temporary name, and resides in the temporary folder. -Function is appropriately named. -Has a switch that will display the content of the temporary file in Notepad. -Supports an encoding parameter and support ASCII and Unicode as encoding types. -Supports the whatif, debug, and verbose parameters.
Advanced_Event8.ps1 by Alex McFarland 20 Apr 2011 01:28 AM UTCby 2 users
Advanced Event 81 Comments
Advanced Event8. Satisfies all optional and mandatory requirements, although I experienced occasional errors stripping the metadata due to GDI (errors are trapped)
Get-SQLSatTwitterCSV by Alex McFarland 16 Apr 2011 08:47 PM UTCby 2 users
Advanced Event 71 Comments
Advanced Event 7 of the 2011 Scripting games. Fulfills all required functionality, and all "extra points" options. Additionally has the option to specify the CSV file location, open the resulting file in notepad, and search with wildcards.
Get-SQLSatTwitterID by Alex McFarland 16 Apr 2011 08:42 PM UTCby 2 users
Advanced Event 6
Advanced Event 6 of the 2011 Scripting games. Fulfills all requirements, and all extra points options, in addition to several extra options, including a "switch" to open the file in notepad, and the option to specify the output location of the file.
New-HSGLogFile by Alex McFarland 15 Apr 2011 05:11 AM UTCby 2 users
Advanced Event 9
Writes a log file in the HSGLogFiles folder under the users "My Documents" folder. Logfile is named as YYYYMMDD_USERNAME.log. Also fufills all of the "extra points" criteria: -Automatically creates the HSGLogFiles directory. -Detects if the HSGLogFiles directory exists. If it does not exist, it is created. -If the HSGLogFiles directory does exist, it is handled gracefuly.
Get-Windows7UpgradeInfo.ps1 by Alex McFarland 14 Apr 2011 05:52 AM UTCby 2 users
Advanced Event 51 Comments
Uses a combination of WMI, DxDiag.exe, and PowerShell remoting to test one or many machines for Windows7 upgrade eligibility.
Get-DependentServices.ps1 by Alex McFarland 11 Apr 2011 03:48 AM UTCby 2 users
Advanced Event 2
Script to parse all running services and their dependent services. Works with input from the pipeline, from an array of computers, or can search active directory for all machines. Requires elevation, as I bumped into occasional issues parsing services dependent on DCOM without it. Added a switch to bypass the check for an elevated account, as most information can be returned with a standard user.
Get-SvcHostInfo by Alex McFarland 08 Apr 2011 06:41 AM UTCby 3 users
Advanced Event 4
Script to retrieve all svchost.exe processes, provide memory statistics, startup info, and a list of all hosted services. By default, will output objects, but can be made to output a friendly report to screen or text file.
Advanced3_2011.psm1 by Alex McFarland 07 Apr 2011 06:44 AM UTCby 2 users
Advanced Event 31 Comments
PowerShell Module containing the Get-EventLogData function.
Advanced1_2011.psm1 by Alex McFarland 06 Apr 2011 01:10 AM UTCby 3 users
Advanced Event 14 Comments
- Advanced Event 1 (83)
- Advanced Event 10 (34)
- Advanced Event 2 (63)
- Advanced Event 3 (50)
- Advanced Event 4 (51)
- Advanced Event 5 (38)
- Advanced Event 6 (51)
- Advanced Event 7 (39)
- Advanced Event 8 (27)
- Advanced Event 9 (46)
- Beginner Event 1 (149)
- Beginner Event 10 (85)
- Beginner Event 2 (139)
- Beginner Event 3 (100)
- Beginner Event 4 (108)
- Beginner Event 5 (93)
- Beginner Event 6 (102)
- Beginner Event 7 (108)
- Beginner Event 8 (90)
- Beginner Event 9 (92)