Category Archives: scripts

Retrieve SQL Database and Transaction Log File Sizes using Get-Counter

This is a nice little script that I used to find the size of all of the SQL server database (MDF) and Transaction Log (LDF) files on each SQL server that we have. This stems from a task I had … Continue reading

Posted in powershell, scripts | Tagged , , | 3 Comments

Creating a Report of Log File Data using Regular Expressions, Arrays and Hash Table

As I was checking my email early in the morning, I saw an email from co-worker asking me to write a script to parse through some logs that were generated from another script that listed the date the script is … Continue reading

Posted in powershell, scripts | Tagged , , , , , | 5 Comments

Querying UDP Ports with PowerShell

It was brought to my attention earlier in the week that my Test-Port script had a fairly big bug involving checking the UDP port to determine whether it was open or not. Initially, the function would always come back with … Continue reading

Posted in powershell, scripts | Tagged , , , | 6 Comments

More Web Services with PowerShell: Geo IP Location

Now that I have been bitten by the New-WebServiceProxy bug and built the weather function in a previous blog, I decided to work on another function to grab an IP address and show the country of origin. So without re-hashing … Continue reading

Posted in powershell, scripts | Tagged , , | 1 Comment

Retrieving Weather Information From A Web Service Provider

I noticed on my twitter feed about a PowerTip from powershell.com that showed you how to retrieve the weather information from a given web service. This is a pretty cool 3 lines of code that used the New-WebServiceProxy cmdlet that … Continue reading

Posted in powershell, scripts | Tagged , , | 1 Comment