Showing archive results for 2011

Oct 17, 2011
Post comments count0
Post likes count1

Easily Remove Columns from a CSV File by Using PowerShell

Doctor Scripto

Summary: Use a super simple, one-line command to remove columns easily from a CSV file using Windows PowerShell.   Hey, Scripting Guy! I have a CSV file from which I need only two of eight columns. Can Windows PowerShell delete certain columns? I have searched the Internet for days with no luck. —RK   Hello RK, Microsoft Scripting G...

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

Dealing with PowerShell Hash Table Quirks

Doctor Scripto

Summary: Microsoft Scripting Guy Ed Wilson shows how to deal with two Windows PowerShell hash table quirks.   Microsoft Scripting Guy Ed Wilson here. Our week in Ottawa draws to a close. We leave for Montreal today, and are really excited about the Windows PowerShell people we will meet while we are there. I enjoyed working on my Windows Power...

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

Easily Create a PowerShell Hash Table

Doctor Scripto

Summary: Learn how to automatically populate a hash table in a Windows PowerShell script.   Microsoft Scripting Guy Ed Wilson here. A hash table is an important data structure in Windows PowerShell. Many of the cmdlets use hash tables to format their input. For example, if I want to create a custom column header in a table, I have to use a hash t...

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

Create a PowerShell Quiz by Reading a Text File

Doctor Scripto

Summary: Learn how to create a Windows PowerShell hash table from a text file.   Microsoft Scripting Guy Ed Wilson here. Our Canadian trek continues. We got to meet with Microsoft MVP Sean Kearney and his wife Rose, and we spent the day roaming around Toronto. He even took me to the store where he bought his trademark BATCHman hat. Along the w...

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

Add Random Question Features to a PowerShell Game

ScriptingGuy1

Summary: Learn how to add random question features to a Windows PowerShell script game. Microsoft Scripting Guy Ed Wilson here. Well, the Scripting Wife and I have really enjoyed Ottawa. The class I am teaching on Windows PowerShell has absolutely rocked! Ottawa is one of my favorite cities (there is a really cool woodworking store here), and I ha...

Scripting Guy!Windows PowerShellscripting techniques