Hey, Scripting Guy! How Can I Collect Processor Information?

Hey, Scripting Guy! I am interested in using Windows PowerShell to collect processor information, but I do not need to see the raw data. I would rather see calculated results such as the maximum, minimum, and average processor utilization. I know I can do this, but that seems like writing a lot of math formulas,…

Hey, Scripting Guy! How Can I Find Locked-Out Accounts?

Hey, Scripting Guy! I know we probably should not do this, but we have account lockout set at work. If a user types in too many bad passwords, they are locked out forever. It requires a call to the help desk to have their account unlocked. The problem is that some users who are shall…


Hey, Scripting Guy! How Can I Find Old Computer Accounts?

Hey, Scripting Guy! We have had a number of changes at our company recently. As a result, our Active Directory Domain Services (AD DS) installation is somewhat shabby. Okay, a lot shabby. When I go into AD DS Users and Computers and look through it, I cannot tell which computers are supposed to be there…


Hey, Scripting Guy! How Can I Find Expiring Passwords?

Hey, Scripting Guy! The pointy headed boss (PHB) is at it again. He has decided he does not like it when users do not change their password when prompted. As a result, he wants me to produce a report once a week of all the users who will have to change their password next week….


Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (11/14/08)

Troubleshooting a Script That Uses the TrimStart Method   Hey, Scripting Guy! Greetings from an old VBScript guy. I have a problem with a Windows PowerShell script. It returns the unexpected result of “RANSFER” instead of the desired result of “\TRANSFER”. One more thing: How can I use the TrimStart method to cut exactly what…