Browse by Tags

Tagged Content List
  • Blog Post: PowerShell 5: Create Simple Class

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about creating a simple class in Windows PowerShell 5.0 in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. The good news is that so far the weather person has been wrong—every single day for the last five days in a row. The bad news...
  • Blog Post: Introduction to PowerShell 5 Classes

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about Windows PowerShell 5 classes in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. It is an interesting morning. We are up early, looking around, and trying to decide if the latest tropical storm is going to become a hurricane...and if...
  • Blog Post: PowerTip: Float PowerShell Help

    Summary : Learn how to display your Windows PowerShell Help in a new window. How can I keep my Windows PowerShell Help open so I can look at it while I am trying my new code? Use the ShowWindow parameter. It will open a new window that contains your Help and allow you to move it around on your...
  • Blog Post: Weekend Scripter: PowerShell 5 Enums—The Video

    Summary : Microsoft Scripting Guy, Ed Wilson, presents a video where he recaps his blog posts about Windows PowerShell 5.0 enums. Microsoft Scripting Guy, Ed Wilson, is here. Today I decided to make a video to summarize my technique for working with enums in Windows PowerShell 5.0 in Windows 10. ...
  • Blog Post: PowerTip: Retrieve Last Token with PowerShell

    Summary : Learn how to use Windows PowerShell to retrieve the last token and avoid retyping. I used Get-Process to view a process I launched, and later I wanted to stop the process. How can I do this without doing a lot of typing or creating new variables? The $$ automatic variable contains the...
  • Blog Post: Weekend Scripter: PowerShell Module Manifests—The Video

    Summary : Ed Wilson presents a recap video where he talks about Windows PowerShell module manifests. Microsoft Scripting Guy, Ed Wilson, is here. It has been stormy for the last couple of days. It makes for a great time to spend offline playing around with my Windows 10 laptop or Surface Pro 3. Watching...
  • Blog Post: PowerTip: Find Specific Help Articles with PowerShell

    Summary : Learn how to easily find specific Help articles with Windows PowerShell. How can I use Windows PowerShell to find a Help article about automatic variables, if I am not sure of the title? Use the Get-Help cmdlet and begin with about_ , then press Tab expansion. It will cycle through matches...
  • Blog Post: August 2015 PowerShell Spotlight

    Summary : Microsoft PowerShell MVP, Teresa Wilson, talks about community activities. Microsoft Scripting Guy, Ed Wilson, is here. In case you haven’t noticed, I have been turning the keyboard over to Teresa (PowerShell MVP, and my real life wife, aka the Scripting Wife) once a month so she can...
  • Blog Post: PowerTip: See Number of Errors in PowerShell Session

    Summary : Learn how to determine how many errors there are in the Windows PowerShell session. How can I determine how many current errors there are in my Windows PowerShell session? Use the Count property from the Error object array: $error.count
  • Blog Post: Working with Enums in PowerShell 5

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about working with enums in Windows PowerShell 5.0 in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. Yesterday, I talked about the new stealth feature in Windows PowerShell 5.0 in Windows 10 that permits me to easily create an enum. Enums...
  • Blog Post: PowerTip: Find Numeric Value of Enum in PowerShell

    Summary : Learn how to easily find the numeric value of an enum in Windows PowerShell. How can I use Windows PowerShell to easily find the numeric value of an enumeration? Use square brackets to call the enum, call the enumeration property as a static property, and reference3 the value__ property...
  • Blog Post: New PowerShell 5 Feature: Enumerations

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about creating enumerations in Windows PowerShell 5.0. Microsoft Scripting Guy, Ed Wilson, is here. It is nearly a stealth feature in Windows PowerShell 5.0—there is an Enum keyword. Yep, that's right, there is an Enum keyword. I wonder...
  • Blog Post: PowerTip: See Enumeration Value in PowerShell

    Summary : Learn how to retrieve an enumeration value in Windows PowerShell. How can I see enumeration allowed values in Windows PowerShell? Place the enumeration name in square brackets, and use the double colon syntax to retrieve a specific property. IntelliSense will show you permissible values...
  • Blog Post: PowerTip: Find Custom Default PowerShell Parameter Values

    Summary : Learn how to find custom default Windows PowerShell parameter values. How can I find what custom default Windows PowerShell parameter values I have set up on my Windows PowerShell console? Check the value of the $PSDefaultParameterValues variable, for example: PS C:\> $PSDefaultParameterValues
  • Blog Post: Add Default Values for PowerShell Module Manifest

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about adding default values to your Windows PowerShell module manifest. Hey, Scripting Guy! I kind of like the idea of creating a manifest for my Windows PowerShell module, but it seems like a lot of busy work. I mean, I seem to always be typing...
  • Blog Post: Verify PowerShell Module Manifests

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about verifying Windows PowerShell module manifests. Microsoft Scripting Guy, Ed Wilson, is here. One of the things that is cool about Windows PowerShell is that it is self-describing. I can type Get-Member or Get-Command and find out what a Windows...
  • Blog Post: PowerTip: Find Path to PowerShell Module

    Summary : Easily find the path to a Windows PowerShell module. How can I easily find the location where a Windows PowerShell module is installed? Use the Path property from the PSModuleInfo object that returns from the Get-Module cmdlet, for example: (Get-Module Microsoft.PowerShell.Utility...
  • Blog Post: Weekend Scripter: Parse NetStat with PowerShell 5—The Video

    Summary : Ed Wilson, Microsoft Scripting Guy, shares a video he made that illustrates parsing NetStat with Windows PowerShell 5.0. Microsoft Scripting Guy, Ed Wilson, is here. For someone who loves working at the command line, the new ConvertFrom-String cmdlet is awesome. I mean, I can do things in...
  • Blog Post: PowerTip: Find Network Adapters that Are Up

    Summary : Find your network adapters that are available. How can I use Windows PowerShell to find which network adapters on my computer are up? Use the Get-NetAdapter cmdlet and filter on the status, for example: (Get-NetAdapter).where{$_.status -eq 'up'} Note This command works on...
  • Blog Post: Weekend Scripter: Create Objects from Strings—The Video

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell 5.0 to create objects from strings in this video. Microsoft Scripting Guy, Ed Wilson, is here. One of the great things about Windows PowerShell is that it is object-oriented. This means that I can easily pipe objects...
  • Blog Post: PowerTip: Use PowerShell to Find Current Connection Profile

    Summary : Use Windows PowerShell to find your current connection profile. How can I use Windows PowerShell to see what connection profile my computer is using? Use the Get-NetConnectionProfile cmdlet.
  • Blog Post: New PowerShell 5 Feature Provids Better Registry Support

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about a new feature in Windows PowerShell 5.0 that providers better registry support. Microsoft Scripting Guy, Ed Wilson, is here. The Windows PowerShell registry drive has always been somewhat of a love-hate relationship with me. I mean, it makes...
  • Blog Post: PowerTip: Use PowerShell Tab Expansion to Navigate Registry

    Summary : Use the Windows PowerShell tab expansion feature to quickly navigate the Windows registry. How can I use Windows PowerShell to explore settings in the Windows registry? Use a cmdlet like Get-Item , Get-ItemProperty , or Get-ItemPropertyValue , specify the drive (such as HKCU), and then...
  • Blog Post: The New Raw-File Version Information in PowerShell 5

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about looking at raw-file version information by using Windows PowerShell 5.0 in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here, and it is finally here. It seems like waiting for a major holiday to appear. Yes! It is nearly time for the...
  • Blog Post: PowerTip: See What Update-Help Does on Your System

    Summary : Learn how to see what the Update-Help cmdlet does on your system. How can I see what Update-Help does on my Windows 10 computer—if anything? Open the Windows PowerShell console with Admin rights, type Update-Help , and add the –Verbose switch. It will list everything that...