PowerTip: Enable and disable ODBC performance counter settings with PowerShell

Summary: Learn how to enable and disable a collection of ODBC performance counter settings for troubleshooting.  How can I use Windows PowerShell to enable the ODBC performance counters, run commands in a script, and then disable the counters?  You can store a returned object for later use when you enable the performance counters by using…


PowerTip: Enable PerfMon counters for ODBC connection pooling with PowerShell

Summary: Learn how to use Windows PowerShell to enable Windows Performance Monitor counters for ODBC connection pooling.  How can I use Windows PowerShell to enable Windows Performance Monitor (PerfMon) counters so I can troubleshoot Open Database Connectivity (ODBC) connection pooling?  Use the Enable-ODBCPerfCountger cmdlet and specify the platform (32 bit or all). Here is an…


Weekend Scripter: Test Performance of Event Log Queries—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, talks about comparing the performance of various Windows PowerShell event log queries. Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk about examining the performance of various queries from the event log. Note  For more information about this technique, see Check Performance of…


PowerTip: Measure Performance of PowerShell Command

Summary: Measure how long it takes for a Windows PowerShell command to complete.    If I change one command to try to improve the speed of my Windows PowerShell script , how can I see if            that command is faster than the one I changed?  Use the Measure-Command cmdlet. For example, to…


Weekend Scripter: Using PowerShell to Look for Documents

Summary: Microsoft Scripting Guy, Ed Wilson, talks about different approaches to find documents with Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. It is a lovely weekend down here in the deep south USA. I am sipping a nice cup of English Breakfast tea with lemon, lime, orange pith, and Hibiscus flower added. I decided to leave…


Use PowerShell to Start Random Processes at Random Times

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create random processes at random times.  Hey, Scripting Guy! I need to start a process that I pick randomly from a list. I would like these processes to start at random times so I can test my monitoring application. Is this something Windows…

1

Use PowerShell to Start a Process at Random Times

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to start a process at random intervals.  Hey, Scripting Guy! I have a rather unusual request. I am testing a new monitoring application, and I need a script that will start processes at random intervals so I can check the effectiveness of the solution….


Weekend Scripter: PowerShell Speed Improvement Techniques

Summary: Microsoft PFE, Dan Sheehan, talks about speeding up Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back Dan Sheehan, who debuted yesterday as a new guest blogger with his post Best Practices for PowerShell Scripting in Shared Environment. Dan recently joined Microsoft as a senior premiere field engineer in the U.S….


Gathering Network Statistics with PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about various ways to gather network statistics by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Hey, it is nearly the weekend! This means we are one week closer to Windows PowerShell Saturday #007… PowerShell Saturday #007 will be held in Charlotte, North Carolina on February…


Use PowerShell to Determine Computer Reliability

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to determine the reliability of his workstation. Microsoft Scripting Guy, Ed Wilson, is here. Sometimes, I am absolutely astounded when my computer works at all. At other times, I completely take it for granted. What makes the difference? Well, that part is easy: it…