Scripts By Rich Kusak
New-TempFileContent by Rich Kusak 22 Apr 2011 04:58 AM UTCby 3 users
Advanced Event 102 Comments
The New-TempFileContent function creates a temporary file in the Windows temp location and saves content in the file. Optionally, the file contents can be shown by use if the -Show parameter.
New-LogFile.ps1 by Rich Kusak 21 Apr 2011 05:14 AM UTCby 2 users
Advanced Event 9
Creates a new log file once per day. Creates parent folder if missing. Exits silently on both success and errror.
Resolve-TwitterName by Rich Kusak 17 Apr 2011 03:26 PM UTCby 2 users
Advanced Event 7
The Resolve-TwitterName function resolves twitter names from a specified URI by parsing the page with a regular expression. Adhoc resolution can be done by providing either the twitter full or user name as an argument on the Name parameter. Optionally, the results can be saved to a CSV file.
Get-TwitterName by Rich Kusak 17 Apr 2011 07:19 AM UTCby 2 users
Advanced Event 6
The Get-TwitterName function retrieves twitter user names from a specified URI by parsing the page with a regular expression.
Test-Windows7UpgradeEligiblity by Rich Kusak 15 Apr 2011 04:51 AM UTCby 2 users
Advanced Event 5
The Test-Windows7UpgradeEligiblity function uses WMI to collect the system information for a computer to determine if it's eligible to be upgraded to Windows 7. Additionally, the computer is tested to see if it supports the 64-bit version of Windows 7.
Get-ProcessStatistic by Rich Kusak 14 Apr 2011 04:54 AM UTCby 2 users
Advanced Event 4
The Get-ProcessStatistic function uses the WMI Win32_Process and Win32_Service classes to get statistical information on a process and associated services. The -ShowAsReport parameter outputs the results to a HTML report.
Get-EventDate by Rich Kusak 13 Apr 2011 05:10 AM UTCby 2 users
Advanced Event 3
The Get-EventDate function uses Get-WinEvent to query all classic logs and enabled ETL logs for events on the date specified.
Get-RunningServiceDependent by Rich Kusak 12 Apr 2011 04:00 AM UTCby 2 users
Advanced Event 2
Retrieves all running services and associated dependencies reporting on the status. Assumes that since a Windows 2008 R2 domain controller exists in the environment that access to the MS ActiveDirectory module is possible to collect server names for the function to run against.
Get-ProcessModule by Rich Kusak 11 Apr 2011 04:51 AM UTCby 2 users
Advanced Event 1
The Get-ProcessModule function gets a process and a specified associated module. The results are piped to the ConvertTo-Csv cmdlet to satify the requirements for advanced event 1.
- 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)