Browse by Tags

Tagged Content List
  • Blog Post: Handling Errors the PowerShell Way

    Summary : Trevor Sullivan talks about handling errors in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today we have guest blogger and Windows PowerShell MVP, Trevor Sullivan ... Microsoft Scripting Guy, Ed Wilson, just wrote a post about how to use the Try-Catch-Finally blocks...
  • Blog Post: Getting to Know ForEach and ForEach-Object

    Summary : Learn the differences between ForEach and ForEach-Object in Windows PowerShell. Honorary Scripting Guy and Windows PowerShell MVP, Boe Prox , here today filling in for my good friend, The Scripting Guy. Today I am going to talk about some differences between using ForEach and using ForEach...
  • Blog Post: 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...
  • Blog Post: Weekend Scripter: Using Try, Catch, Finally Blocks for PowerShell Error Handling

    Summary : Microsoft PFE, Ashley McGlone, talks about using Try, Catch, Finally blocks for error handling in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today’s guest blogger is Ashley McGlone, a Microsoft premier field engineer. Ashley is a popular speaker at our Windows...
  • Blog Post: PowerTip: Convert to Upper Case with PowerShell

    Summary : Learn how to use Windows PowerShell to easily capitalize a string. How can I use Window PowerShell to make all the text upper case so it is all in the same form prior to writing to a database? Use the ToUpper method from the String class: "string".ToUpper()
  • Blog Post: A Better PowerShell Console with Custom PSReadLine Functions

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about a better Windows PowerShell console experience by using custom PSReadLine functions. Microsoft Scripting Guy, Ed Wilson, is here. I was reading an interesting article the other day. The author was talking about movies and history. The author...
  • Blog Post: PowerTip: Determine PSReadLine Option Configuration

    Summary : Use a cmdlet to find the way PSReadLine options are configured. I recently started using PSReadLine, and I would like to see the way options are configured. How can I report the options settings? Use the Get-PSReadLineOption cmdlet.
  • Blog Post: Useful Shortcuts from PSReadLine PowerShell Module

    Summary : Microsoft Scripting Guy Ed Wilson talks about useful shortcuts from the PSReadLine Windows PowerShell module. Microsoft Scripting Guy, Ed Wilson, is here. This is PSReadLine Week. You might also be interested in reading the following posts: The Search for a Better PowerShell Console...
  • Blog Post: Better PowerShell History Management with PSReadLine

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using PSReadLine to gain better history support in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Someone might have said that those PowerShellers who do not learn how to use command history are doomed to retype the same commands...
  • Blog Post: A Better PowerShell Command-Line Edit

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using PSReadLine to improve command-line editing in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today I thought I would try something a bit different. It is hard to show command-line editing with screenshots and tables...
  • Blog Post: The Search for a Better PowerShell Console Experience

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about the search for a better Windows PowerShell console experience. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sipping a cup of English Breakfast tea. I added bits of spearmint, peppermint, and licorice root, along with a cinnamon...
  • Blog Post: Weekend Scripter: Use PowerShell to Explore Dates

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to explore dates in the future. Microsoft Scripting Guy, Ed Wilson, is here. This afternoon, I am sipping a nice cup of Kwai Flower Organic Oolong tea. It is a slightly sweet, mild tea that goes well with jasmine blossoms...
  • Blog Post: Calling XMLDocument Methods in PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about calling XMLDocument methods in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today is Friday the 13 th . Cool. Luckily, I do not have to go anywhere tonight around midnight, by the light of a full moon. But I am going to...
  • Blog Post: Calling XML Document Properties from Within PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about calling XML document properties from within Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Craig Liebendorfer is back. No, he is not working on the Hey, Scripting Guy! Blog, but he is working on the Script Center as a whole...
  • Blog Post: Using PowerShell to Explore Structure of an XML Document

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore the structure of an XML document. Microsoft Scripting Guy, Ed Wilson, is here. I don’t know about you, but when I decide to script, I often do a cost/benefit analysis. I am not talking about anything...
  • Blog Post: Exploring XML Document by Using the [XML] Type Accelerator

    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...
  • Blog Post: Creating an XML Document for Admins

    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...
  • Blog Post: Understanding XML and XPath

    Summary : Microsoft Scripting Guy, Ed Wilson, explores XML and XPath . Microsoft Scripting Guy, Ed Wilson, is here. One of the things that confused me for a long time about using the Get-WinEvent cmdlet is the difference between the –FilterXPath parameter and the –FilterXml parameters...
  • Blog Post: Weekend Scripter: Cool PowerShell Profile Functions from Bruce Payette

    Summary : Windows PowerShell principal SDE, Bruce Payette, shares a couple of cool profile functions. Microsoft Scripting Guy, Ed Wilson, is here. The week of May 19, we had Profile Week. (To read about some great ideas that you can use for your Windows PowerShell profile, see these Hey, Scripting...
  • Blog Post: Using PowerShell to Parse System Log for Windows Updates

    Summary : Learn how to use XML and Windows PowerShell to parse the Windows system event log for Windows updates. Microsoft Scripting Guy, Ed Wilson, is here. Sometimes I come up with a solution, and then I go looking for a problem to fix. Not often, but sometimes. This is usually the result of playing...
  • Blog Post: Data Mine the Windows Event Log by Using PowerShell and XML

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Get-WinEvent in Windows PowerShell with FilterXML to parse event logs. Microsoft Scripting Guy, Ed Wilson, is here. Today I am sipping a cup of English Breakfast tea. In my pot, I decided to add a bit of spearmint, peppermint, licorice...
  • Blog Post: PowerShell Best Practices: Advanced Functions

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about best practices for Windows PowerShell advanced functions. Microsoft Scripting Guy, Ed Wilson, is here. This morning, I am again enjoying a cup of my Darjeeling Earl Grey tea. Today I added a bit of rose petal, lemon grass, and a cinnamon stick...
  • Blog Post: PowerShell Best Practices: Simple Functions

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about Windows PowerShell best practices related to simple functions. Microsoft Scripting Guy, Ed Wilson, is here. The first time I saw this tea, I thought, "Dude, what an extravagance." I mean, a fine cup of Darjeeling tea is a true treat...
  • Blog Post: PowerShell Best Practices: Simple Scripting

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about Windows PowerShell best practices for simple scripts. Microsoft Scripting Guy, Ed Wilson, is here. "Heyyyyy! Script it, baby!" The words of Scripting Cmdlet Style continue to echo through the house. If you have not seen the latest...
  • Blog Post: PowerShell Best Practices for the Console

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about Windows PowerShell best practices for the console. Microsoft Scripting Guy, Ed Wilson, is here. This morning, the Scripting Wife and I decided to head to a new breakfast place that had great reviews on Yelp. We grabbed our Surface 2s and headed...