PowerTip: Difference Between XML PowerShell Cmdlets

Summary: Understand the difference between XML cmdlets in Windows PowerShell.  What is the difference between the Windows PowerShell cmdlets, Export-CliXML and ConvertTo-XML?  The Help file for ConvertTo-XML says: “This cmdlet is similar to Export-CliXML, except that Export-CliXML stores the resulting XML in a file. ConvertTo-XML returns the XML, so you can continue to process it in Windows PowerShell.” The Export verb encapsulates…


Back to Basics Part 5: Outputting Data

Summary: Microsoft PFE, Gary Siepser, talks about outputting data via the pipeline in this exciting conclusion to a five part series. Microsoft Scripting Guy, Ed Wilson, is here. Today brings an end to a week of guest blog posts by Gary Siepser. You can read the following posts to catch up with the previous days:…


PowerTip: Looking for Folders and Files in PowerShell

Summary: Learn about looking for folders and files in Windows PowerShell.  Why does this command show me folders instead of files? Dir | Where PSIsContainer -eq False  In Windows PowerShell, use the automatic variables $True and $False to refer to Boolean values          instead of the string True and False. To perform the comparison, Windows PowerShell converts     …


Back to Basics Part 4: More Ways to Manipulate Data

Summary: Microsoft PFE, Gary Siepser, talks more about the basics of the Windows PowerShell pipeline. Microsoft Scripting Guy, Ed Wilson, is here. Today Gary Siepser delivers his Part 4 of his five part series. To follow along, you can read: Back to the Basics Part 1: Learn About the PowerShell Pipeline Back to the Basics Part…


PowerTip: Sorting More than One Column

Summary: Learn to sort by more than one column in Windows PowerShell.  Can I use Windows PowerShell to sort by more than one column, and have the primary column be ascending           and secondary column be descending?  In the Help examples, you'll see that the Property parameter accepts a hash table in place…


Back to the Basics Part 3: Do Something with Your Data

Summary: Microsoft PFE, Gary Siepser, further investigates the basics of the Windows PowerShell pipeline. Microsoft Scripting Guy, Ed Wilson, is here. It's midweek already! Time sure flies, especially when you have a guest blogger for the week. Welcome back Gary Siepser for the third part in a series. To catch up, read: Back to the…


PowerTip: Use Custom Delimiter with CSV File

Summary: Use a custom delimiter with Windows PowerShell when reading a CSV file.  Can I use a delimiter other than the comma ( , ) when reading from a CSV file?  Import-CSV has a parameter dedicated for this purpose called -Delimiter: Get-Help Import-Csv -ShowWindow You can easily use this during the import:


Back to the Basics Part 2: Learn about the Pipeline and "Getters"

Summary: Microsoft PFE, Gary Siepser, talks about the basics of using the Windows PowerShell pipeline and "getters." Microsoft Scripting Guy, Ed Wilson, is here. This week, Gary Siepser, a Microsoft PFE is our guest blogger. Yesterday, we posted the first part of his series: Back to the Basics Part 1: Learn About the PowerShell Pipeline….


PowerTip: Learn to Start the PowerShell Pipeline

Summary: Find cmdlets that permit starting the pipeline in Windows PowerShell.   How do I find all the Get commands that allow me to start a pipeline?  Although there are a number of ways, the Get-Command cmdlet has a parameter           called -Verb for this purpose: PS > Get-Command -Verb Get CommandType Name          ModuleName       ———–…


Back to the Basics Part 1: Learn About the PowerShell Pipeline

Summary: Guest blogger and Microsoft PFE, Gary Siepser, talks about the basics of the Windows PowerShell pipeline. Microsoft Scripting Guy, Ed Wilson, is here. This week we have a series of five posts that are written by PFE Gary Siepser as we head back to the basics with the Windows PowerShell pipeline. Gary Siepser here…