Browse by Tags

Tagged Content List
  • Blog Post: What’s My PID?

    Summary : Ed Wilson, Microsoft Scripting Guy, creates a function to capture the process ID of a Windows PowerShell host. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I like to know is the process ID (PID) of specific processes. Often this is trivial. I can use the Get-Process cmdlet...
  • Blog Post: Launch Elevated PowerShell Shell

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about launching an elevated Windows PowerShell shell. Microsoft Scripting Guy, Ed Wilson, is here. Today I had a great talk with Steve, the Scripting Manager. One of the things we talked about was the importance of community, and how the Windows...
  • Blog Post: Use Function to Determine Elevation of PowerShell Console

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using a function to determine if a Windows PowerShell console is elevated. Microsoft Scripting Guy, Ed Wilson, is here. I had a friend tell me that nearly half of all the cmdlets, functions, and whatever’s in Windows PowerShell 4.0 on...
  • Blog Post: One of My Favorite PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, discusses one of his favorite functions: Get-EnumValues. Microsoft Scripting Guy, Ed Wilson, is here. Today I am working on my presentation for Atlanta TechStravaganza 2015 , which will happen on August 21. It will be a really cool event, and the Scripting...
  • Blog Post: Describe Your PowerShell Variables

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about adding a description to variables. Microsoft Scripting Guy, Ed Wilson, is here. There is a “water feature” outside that keeps running and running and running. It is a bit strange, and to be honest, it makes me think that it is raining...
  • Blog Post: Weekend Scripter: Replace One PowerShell Function with Another

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about replacing one Windows PowerShell function with a different one. Microsoft Scripting Guy, Ed Wilson, is here. One of the problems with writing Windows PowerShell code every day is that you eventually... No, it’s not what you think....
  • Blog Post: PowerTip: Launch PowerShell Without a Profile

    Summary : Learn how to launch Windows PowerShell without using a profile. I suspect my profile is causing issues with Windows PowerShell. How can I launch Windows PowerShell without starting the profile? Use the Run command to launch Windows PowerShell with the –noprofile switch: PowerShell...
  • Blog Post: Sorting PowerShell Transcript Files

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about creating a sortable transcript name. Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about Windows PowerShell is that if there is something that annoys you, you can generally fix it. Don’t get me wrong, Windows PowerShell...
  • Blog Post: I Have a PowerShell Profile—Now What?

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about the what to add into a Windows PowerShell profile. Microsoft Scripting Guy, Ed Wilson, is here. It was a beautiful sunny weekend in central Florida. The Scripting Wife and I headed to Tampa, where we met up with various Windows PowerShell peeps...
  • Blog Post: Add a Couple of Functions to PowerShell Profile

    Summary : Microsoft Scripting Guy, Ed Wilson, adds a couple of new functions to his Windows PowerShell console profile. Microsoft Scripting Guy, Ed Wilson, is here. I have heard that necessity is the mother of invention. For me, annoyance is the mother of scripting. What I mean is that when it comes...
  • Blog Post: The Scripting Wife Uses a Profile to Configure PowerShell

    Summary : The Scripting Wife learns how to use a profile to configure the Windows PowerShell console. Microsoft Scripting Guy Ed Wilson here. One of the coolest events of the year occurs in just a few days. Yes, that’s right, it’s Bouchercon in St. Louis . Bouchercon is a mystery writer’s...
  • Blog Post: Use PowerShell Commands from One Session in Another Session

    Summary : Learn how to automatically save commands from one session, and then use them in a new Windows PowerShell session. Microsoft Scripting Guy, Ed Wilson, is here. One of the fun things about getting to travel around and talk to people who are using Windows PowerShell on a daily basis to automate...
  • Blog Post: Scripting Wife Uses PowerShell to Update Sysinternals Tools

    Summary : The Scripting Wife adds a function to her Windows PowerShell profile to update the Sysinternals tools on her computer. Microsoft Scripting Guy Ed Wilson here. I had completed my IT Time radio interview with Blain Barton for my series on Windows PowerShell best practices, when I heard...
  • Blog Post: Hey, Scripting Guy! How Can I Add a Function to a Profile in Windows PowerShell?

    Hey, Scripting Guy! I have been reading your articles about working with Windows PowerShell profiles, and they are pretty cool. However, I have a question. You mentioned on Monday that I could add a function to a Windows PowerShell profile. I am not sure how I would do that. Can you add a function to...
  • Blog Post: Hey, Scripting Guy! How Can I Use Profiles with Windows PowerShell?

    Hey, Scripting Guy! I would like to personalize the way that Windows PowerShell works. I have been hearing that I can use a thing called a profile to do this, but when I try to find information about profiles, I come up blank. There is no New-Profile Windows PowerShell cmdlet so I do not see how to create...
  • Blog Post: Make a Simple Change to PowerShell to Prevent Accidents

    Summary : Learn how a simple change to a preference variable can help prevent accidental changes when using Windows PowerShell. Microsoft Scripting Guy Ed Wilson here. When I was teaching my Windows PowerShell Best Practices class out in Irvine, California, recently, I was talking to the class...
  • Blog Post: Add Code Snippets to Your Script by Using the PowerShell ISE

    Summary : Learn how to modify the Windows PowerShell ISE to automatically add code snippets. Microsoft Scripting Guy Ed Wilson here. There are advantages and disadvantages to using multiple computers. One of the advantages is that I get to see where I have assumed a dependency on some particular...
  • Blog Post: Hey, Scripting Guy! What's the Deal with the Dash in Cmdlet Names?

    Hey, Scripting Guy! I enjoy using Windows PowerShell, but I do not like the two-word cmdlet names you created for everything. As a matter of fact, I hate the two-word cmdlet names because the dash (-) symbol is hard to type. I guess I will eventually get used to it, but you have to realize that Windows...
  • Blog Post: Hey, Scripting Guy! Why Would I Even Want to Create a Profile in Windows PowerShell?

    Hey, Scripting Guy! Okay, I get that I can create a profile for Windows PowerShell. What I don’t understand is why I would want to create a profile in the first place. It seems to me that Windows PowerShell 2.0 works just fine the way it is. Can you enlighten me a bit? -- VW Hello VW, Microsoft...
  • Blog Post: Scripting Wife Adds a Cool Function to a PowerShell Profile

    Summary : The Scripting Wife learns how to add a cool function to her Windows PowerShell profile. The story you are about to read is true. We did not bother to change the names to protect the innocent. However, we did alter some of the facts. The hot weather had finally broken, and fluffy...
  • Blog Post: The Scripting Wife Creates a PowerShell ISE Profile

    Summary : The Scripting Wife learns how to create a Windows PowerShell ISE profile. Note This is part two in a series of articles in which The Scripting Wife learns how to work with Windows PowerShell profiles. In yesterday’s article , she created a profile for the Windows PowerShell console...
  • Blog Post: Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (5/14/10)

    In this post : How Can I Use the Ver Command in Windows PowerShell? What Do These Numbers Mean That Are Returned by This WMI Class? How Can I Change the Color of Text Displayed in the Windows PowerShell Console? How Can I Get the User Name That Runs Services on Local and Remote Systems...
  • Blog Post: How to Create a Customizable Profile for the PowerShell ISE

    Summary : Learn how to create a customizable profile for the Windows PowerShell ISE. The Microsoft Scripting Guys walk you through the steps. Microsoft Scripting Guy Ed Wilson here. It is a quiet Sunday morning here in Charlotte, North Carolina . The female humanoid that shares my domicile has...