Showing archive results for June 2014

Jun 10, 2014
Post comments count0
Post likes count0

PowerTip: Validate XML Document with PowerShell

Doctor Scripto

Summary: Learn to use Windows PowerShell to validate that an XML document is well formed.  How can I use Windows PowerShell to test that anXML document is well formed?  Use the Test-XML cmdlet from the PSCX: test-xml C:\fso\users.xml Note  PSCX is a community-produced project that is available for free from CodePl...

Scripting Guy!Windows PowerShellPowerTip
Jun 10, 2014
Post comments count0
Post likes count0

Exploring XML Document by Using the [XML] Type Accelerator

Doctor Scripto

Summary: Learn how to use the [XML] type accelerator to explore XML documents. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife bought me a pound of English Breakfast tea that she found online somewhere. It is long leaf, robust, and has a hint of earth tones in the bouquet. It makes a wonderfully rich pot of tea. It was a complete s...

Scripting Guy!Windows PowerShellscripting techniques
Jun 9, 2014
Post comments count0
Post likes count0

PowerTip: Display Formatted XML with PowerShell

Doctor Scripto

Summary: Use a free cmdlet to display formatted XML with Windows PowerShell.  How can I display formatted XML from within Windows PowerShell?  Use the Format-XML cmdlet from the PSCX project: Format-Xml C:\fso\users.xml Note  For information about the PSCX project, this collection of Hey, Scripting Guy! Blog posts...

Scripting Guy!Windows PowerShellPowerTip
Jun 9, 2014
Post comments count0
Post likes count0

Creating an XML Document for Admins

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating XML files. Microsoft Scripting Guy, Ed Wilson, is here. I will be the first to admit that I am not a huge fan of XML. I mean, if I can use a CSV file to store and retrieve the information I need, why do I need XML? Well, there are many times when the nested structure of XML is a more...

Scripting Guy!Windows PowerShellscripting techniques
Jun 8, 2014
Post comments count0
Post likes count0

PowerTip: Does PowerShell Array Contain a Value?

Doctor Scripto

Summary: Learn how to verify if a Windows PowerShell array contains a value. I have an array that contains various numbers and I want to see if one of the array elements contains           a specific number. Is there an easy way to use Windows PowerShell so I don't have to iterate through         &n...

Scripting Guy!Windows PowerShellPowerTip