Browse by Tags

Tagged Content List
  • 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: PowerTip: Use PowerShell to Check Logon Server for Client

    Summary : Use Windows PowerShell to check the logon server of your clients. How can I use Windows PowerShell to verify if my users are trying to sign in to their computers with a Windows account instead of using their domain credentials? Check the value of the environmental LOGONSERVER variable...
  • 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: PowerTip: Find PowerShell Variables Defined for AllScope

    Summary : Find Windows PowerShell variables that are defined for all scopes. How can I find what variables are defined as AllScope in my Windows PowerShell environment? Get a list of all your variables, and filter for options that include AllScope , for example: (dir variable:).where({$_.options...
  • Blog Post: Weekend Scripter: Back Up Your PowerShell Profile

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about automatically backing up your Windows PowerShell profile. Microsoft Scripting Guy, Ed Wilson, is here. My rule for making backups is that when the loss of the item would cause me grief, it is backed up. Otherwise, there is not too much need...
  • 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: Two Cool PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about a pair of cool Windows PowerShell functions to add to your profile. Microsoft Scripting Guy, Ed Wilson, is here. At times, it seems like a Windows PowerShell profile is like a filing cabinet. Whether you have good organizational skills or you...
  • Blog Post: PowerShell Profile? Which One?

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about determining which Windows PowerShell profile to use for which functions. Microsoft Scripting Guy, Ed Wilson, is here. Living in central Florida can be a bit warm and humid in late July. Of course, I knew that before we moved here. I told one...
  • Blog Post: PowerTip: Determine if Running in PowerShell Console

    Summary : Determine if you are running inside the Windows PowerShell console. How can I find if I am running inside the Windows PowerShell console for my Windows PowerShell profile? Look at the $host.name property. If it returns ConsoleHost , you are running in the Windows PowerShell console. The...
  • 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: PowerTip: Find Name and Location of PowerShell Profiles

    Summary : Learn how to find the name and location of various Windows PowerShell profiles. How can I find the name and location of various Windows PowerShell profiles? Use the $profile automatic variable to see what profiles are available for your particular Windows PowerShell host (for example...
  • Blog Post: Weekend Scripter: Break in to a Script via a Command

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using the debugger to break in to a script via a specific command. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things, when troubleshooting a specific function in Windows PowerShell, is to set a breakpoint to occur each time...
  • Blog Post: Setting a Breakpoint on a Variable

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using variable breakpoints with the Windows PowerShell debugger. Hello Windows PowerShell scripting dudes and dudettes! Debugging Week continues, and today I am talking about using variable breakpoints with the Windows PowerShell debugger...
  • Blog Post: Use PowerShell Strict Mode for Debugging

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using strict mode in Windows PowerShell for debugging purposes. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that it can take being ignored or being used carelessly and sloppily, and it still...
  • Blog Post: More PowerShell Script Tracing and Strict Mode

    Summary : Ed Wilson, Microsoft Scripting Guy, talks more about Windows PowerShell script tracing and enabling strict mode. Microsoft Scripting Guy, Ed Wilson, is here. It can be somewhat painful to troubleshoot intermittent errors with Windows PowerShell. Two things that can lead to this are variables...
  • Blog Post: Tracing the Execution of a PowerShell Script

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using a cmdlet to trace the execution of a Windows PowerShell script. Hey, Scripting Guy! I am having a problem with a script. It does not generate any errors, but dude, it does not seem to work either. Can you help me debug it? —DR...
  • Blog Post: Weekend Scripter: Debug, Boss...Debug

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about debugging Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about central Florida is there are lots of farmers markets… especially (I am told) this time of the year. This is great, because...
  • Blog Post: PowerTip: Find All Breakpoints in PowerShell Session

    Summary : Find all breakpoints for a Windows PowerShell script. How can I see the debugging breakpoints that are set in my current Windows PowerShell session? Use the Get-PSBreakpoint cmdlet.
  • Blog Post: Weekend Scripter: The Big Decision about Scripts

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about if you should write Windows PowerShell scripts or do something else. Microsoft Scripting Guy, Ed Wilson, is here. It is the weekend, and once again, it is a beautiful sunny morning in central Florida. I am sitting outside with my Windows Surface...
  • Blog Post: Understanding PowerShell Modules

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about Windows PowerShell modules. Hey, Scripting Guy! I keep hearing about Windows PowerShell modules, but I do not know what they really mean. Is it something that comes with Windows PowerShell, or is it something I have to buy or download? I don’t...
  • Blog Post: Understanding Advanced Functions in PowerShell

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about Windows PowerShell advanced functions. Hey, Scripting Guy! I keep hearing about advanced functions, but to be honest, I am not really sure what they are talking about. I mean, I can do a function, but when does it become advanced? Only when...
  • Blog Post: Fun with PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about basic design considerations for Windows PowerShell functions. Hey, Scripting Guy! I keep hearing about functions, but I really do not know what they are, how to create one, or even how to use one. Can you help me with this? I am not a programmer...