Showing archive results for 2011

Oct 22, 2011
Post comments count0
Post likes count0

Use a PowerShell Function to Find Specific WMI Classes

Doctor Scripto

Summary: Use a Windows PowerShell function to find WMI classes with specific qualifiers.   Microsoft Scripting Guy Ed Wilson here. In Thursday’s article, I talked about using the Set-WmiInstance cmdlet to work with WMI classes. One of the parameters, the class parameter, works with WMI singleton objects. Now, it is certainly possible to ...

Scripting Guy!Windows PowerShellscripting techniques
Oct 21, 2011
Post comments count0
Post likes count0

Create a Really Cool PowerShell ISE Profile

Doctor Scripto

Summary: Learn how to create a powerful Windows PowerShell ISE profile by running a single script.   Microsoft Scripting Guy Ed Wilson here. One of the problems with writing a daily blog is that after a while, you end with a huge collection of articles and scripts. When I got a new laptop, and immediately left the country, I was really h...

Scripting Guy!Windows PowerShellscripting techniques
Oct 20, 2011
Post comments count0
Post likes count0

Use the Set-WmiInstance PowerShell Cmdlet to Ease Configuration

Doctor Scripto

Summary: Learn how to use the Set-WmiInstance Windows PowerShell cmdlet to ease configuration of computers.   Hey, Scripting Guy! I was using the Get-Command cmdlet to look at what things I can do with Windows PowerShell, and I noticed a cmdlet called Set-WmiInstance. I looked at the help, but I don’t get it. What is the big deal? &mdas...

Scripting Guy!Windows PowerShellscripting techniques
Oct 19, 2011
Post comments count0
Post likes count0

Use PowerShell to Find the Top Values Returned by WMI

Doctor Scripto

Summary: Learn how to use Windows PowerShell to slice and dice WMI data in an easy, SQL-like fashion.   Hey, Scripting Guy! Does the WMI select statement have any other clauses like SQL does? For example, can I just select top 10 * from to get a sample of the collection rather than doing a * for the entire collection? —UJ   Hello UJ...

Scripting Guy!Windows PowerShellscripting techniques
Oct 18, 2011
Post comments count0
Post likes count0

Convert a Semicolon-Delimited File to a CSV File

Doctor Scripto

Summary: Learn how to convert easily a semicolon delimited file into a CSV file using Windows PowerShell.   Hey, Scripting Guy! I have a problem at work, and I hope you can help. We have an application that writes one log file every four hours. These log files are formatted with semicolons, which makes them a pain to work with. My boss wants m...

Scripting Guy!Windows PowerShellscripting techniques