-
By Todd I was playing around with PowerShell today (yes I’m was geeking out on Saturday afternoon) to learn how to access Performance Counters using PowerShell. My mission was to write a script that would return the Data File and Log File sizes ... Read More
Posted to
SQL Server
(Forum)
by
ps2
on
03-28-2009
Filed under: Data Size, Log Size, Performance Counters
-
By Lance Robinson Thanks to MOW and Lee Holmes for their examples of using the PerformanceCounter class in PowerShell. function Get-WebServiceConnections() { $results = @{} $perfmon = new-object System.Diagnostics.PerformanceCounter $perfmon. ... Read More
Posted to
Using .NET
(Forum)
by
ps2
on
06-12-2009
Filed under: Performance Counters, Web Service Connections
-
After playing around with powershell a bit, I manage to do something quite useful. There are a multitude of ways to capture performance counters but I think this will have the advantage of being able to be fired by SqlAgent (or another ... Read More