Tag: scripting techniques Page 1 of 3

PSScriptAnalyzer deep dive – Part 4 of 4

Summary: Thomas Rayner, Microsoft Cloud and Datacenter Management MVP, shows how to write a custom PSScriptAnalyzer rule.

Hello! I’m Thomas Rayner, a Cloud and Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. You can find …

PSScriptAnalyzer deep dive – Part 3 of 4

Summary: Thomas Rayner, Microsoft Cloud and Datacenter Management MVP, shows how to use Pester to get nUnit formatted results out of PSScriptAnalyzer.

Hello! I’m Thomas Rayner, a Cloud and Datacenter Management Microsoft MVP, filling in for The Scripting Guy …

PSScriptAnalyzer deep dive – Part 2 of 4

Summary: Thomas Rayner, Microsoft Cloud and Datacenter Management MVP, shows how to suppress, include, and exclude PSScriptAnalyzer rules.

Hello! I’m Thomas Rayner, a Cloud and Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. You can …

PowerTip: Find all the Azure Automation jobs that will run in the next two days

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how to find all the Azure Automation jobs that will run in the next two days.

Hey, Scripting Guy! Question Is there a way to find all the Azure Automation jobs that will run …

SharePoint Online cmdlets to help your migration

Summary: Use these PowerShell cmdlets to migrate to SharePoint Online.

Today’s post is from Christopher Weaver, who is a Microsoft Premier Field Engineer (PFE) and focuses on SharePoint and Office 365 solutions for large enterprise Premier customers. He has …

Curly Blue and the meaning of scripting – Part 5

Summary: Curly Blue learns the true meaning of scripting in PowerShell.

When we last saw our hero, Curly Blue, he had discovered not only the ease of use of PowerShell but also the vast community resources provided by Github.…

Curly Blue and the meaning of scripting – Part 4

Summary: Curly Blue learns how to use GitHub resources on PowerShell to clean out old office installations.

When we last saw our hero, Curly Blue, he had been hanging around the office of Azura and discovering the simple ways …

Curly Blue and the meaning of scripting – Part 3

Summary: Curly Blue discovers the raw power of Cim-Instance combined with PowerShell remoting.

We continue with Curly Blue as he searches understand the meaning of scripting. He is still sitting in the office with Azura.

The co-op student, Hermie, …

Curly Blue and the meaning of scripting – Part 2

Summary: Curly Blue learns how to use built-in PowerShell script examples in Windows.

Yesterday we met our new friends, Curly Blue and Linux. Curly had started his new job as a IT Professional at Contoso.

The challenge for poor …

Open Source PowerShell – Part 2

Summary: Use PowerShell scripts within Python and Bash (and those within PowerShell).

Hey, Scripting Guy! Question I am curious just how much I can use Open Source PowerShell within Linux and macOS.  Is it an isolated environment, or can it interact with other …

PowerShell regex crash course – Part 1 of 5

Summary: Thomas Rayner, Microsoft Cloud & Datacenter Management MVP, shows the basics of working with regular expressions in PowerShell.

Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for The Scripting Guy this week. …

PowerTip: Use PowerShell to retrieve the date and time of the given time zone ID

Summary: Use PowerShell to pull out specify TimeZone data from an object.

Hey, Scripting Guy! Question I have data retrieved from an external source that contains different time zone IDs like W. Europe Standard Time, AUS Eastern Standard Time, etc. How can I …

Use PowerShell to integrate with the Lync 2013 SDK for Skype for Business – Part 2

Summary: Learn how to extend PowerShell with Lync 2013 SDK to explore groups and contacts information in Skype for Business 2016 client.

MVP Chendrayan Venkatesan is back again to show us how to get started with the Lync 2013 …

PowerTip: Use PowerShell to list all possible colors in the console

Summary: Use PowerShell and enumeration to access all possible colors that you can use in the console.

Hey, Scripting Guy! Question Is there a way to see all of the available colors that I can use when using Write-Host?

Hey, Scripting Guy! Answer We sure can! …

Use PowerShell to integrate with the Lync 2013 SDK for Skype for Business – Part 1

Summary: Get started with the Lync 2013 SDK by using PowerShell to manage Skype for Business 2016 client.

Hey, Scripting Guy! Question Could you show me an example of how to report on my SharePoint data by using other than the standard ASCII …

PowerTip: Identify the numeric value of a custom (dingbat) character using PowerShell

Summary: Use PowerShell to determine the value of an Extended ASCII character to reproduce it for later use.

Hey, Scripting Guy! Question I have a really simple question that’s been bugging me. I have a string with a special (Extended ASCII) character that …

Use PowerShell to report on SharePoint content with custom (dingbat) characters

Summary: Learn how to use PowerShell to retrieve SharePoint list item values as dingbat symbols to make HTML reports simple and clean.

Hey, Scripting Guy! Question Can you show me an example of how to report on my SharePoint data by using something …

PowerTip: Use PowerShell to remove a user from all site collections in SharePoint Online

Summary: Learn how to use PowerShell to remove a corporate user from all site collections in SharePoint Online.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly remove a corporate user from all site collections in SharePoint Online?

Hey, Scripting Guy! Answer Use the …

Passing through devices to Hyper-V VMs by using discrete device assignment

Summary: Learn how to attach a device from your Hyper-V host to your VM by using a new feature of Windows Server 2016.

Today we have a guest blogger, Rudolf Vesely, who has blogged here on previous occasions. Here …

PowerTip: Get the public IP of an Azure VM with PowerShell

Summary: Use the Azure Resource Manager cmdlets to get the public IP address of an Azure virtual machine.

Hey, Scripting Guy! Question How can I get the public IP address information for an Azure Resource Manager virtual machine (VM)?

Hey, Scripting Guy! Answer All you need to …

How to alter the public IP address of an Azure virtual machine

Summary: Change the public IP address in Azure Resource Manager by using Windows PowerShell.

Honorary Scripting Guy, Will Anderson, shares a personal challenge that he encountered when working with Azure and public IP addresses. He also shares the solution …

PowerTip: Get a GUI interface for any PowerShell cmdlet

Summary: Use the Show-Command to build PowerShell cmdlets.

Hey, Scripting Guy! Question I ran into a problem. Some cmdlets have too many parameters to list. Is there an easy way to build a cmdlet with its parameters for the console?

Hey, Scripting Guy! Answer You’ll love this …

Find ready-to-use sample PowerShell scripts in the GUI

Summary: Honorary Scripting Guy, Sean Kearney, goes over some often missed, easy-to-use PowerShell techniques for those who are starting out.

Hey, Scripting Guy! Question I had heard a rumor that many of the management tools actually run PowerShell code in the backend. Is …

PowerTip: List all available CIM classes by using PowerShell

Summary: Use the Get-CimClass cmdlet to see all classes that you can query from.

Hey, Scripting Guy! Question How can I find a list of Common Information Model (CIM) classes in Windows so that I can ask my computer useful questions?

Hey, Scripting Guy! Answer Just run …

Use Windows PowerShell as an administrative console

Summary: Honorary Scripting Guy, Sean Kearney, shares his early use of PowerShell as a network administrator.

Hey, Scripting Guy! Question I have a simple but irritating task each day around lunch time. A handful of people usually lock themselves out of Active Directory. …

PowerTip: List all subfolders under a target path with PowerShell

Summary: Use Get-Childitem to provide a printable list of all folders under a path.

Hey, Scripting Guy! Question I used to use tree.com to get a list of folders on a computer. Is there something close to that in PowerShell? Maybe something I …

Erase files based on date by using PowerShell

Summary: Honorary Scripting Guy, Sean Kearney, relates his first experience with PowerShell.

Hey, Scripting Guy! Question I was curious just how difficult it is to use Windows PowerShell. For example, how difficult is it to erase files based on the current date?

Hey, Scripting Guy! Answer Honorary …

PowerTip: Use a destructive PowerShell cmdlet safely

Summary: Use the –whatif parameter with PowerShell cmdlets to test code live.

Hey, Scripting Guy! Question I heard that PowerShell has a built-in safety switch to many of its cmdlets. Could you show me an example of it in use?

Hey, Scripting Guy! Answer No problem. You’re …

Use Windows PowerShell to search for files

Summary: Use Get-Childitem to search the files system with PowerShell.

Hey, Scripting Guy! Question I saved a file somewhere on my computer and can’t find it. Is there a way to use Windows PowerShell to find it?

Hey, Scripting Guy! Answer Honorary Scripting Guy, Sean Kearney, is …

PowerTip: Remove trailing space from a string by using PowerShell

Summary: Use the trim() method to remove leading and trailing spaces from a string.

Hey, Scripting Guy! Question Could you do me a huge favor and show me how to get rid of spaces before and after a string in PowerShell?

Hey, Scripting Guy! Answer No problem …

Build a hexadecimal clock in PowerShell – Part 5

Summary: Learn to split data in a Here-String and get a console beep.

Honorary Scripting Guy, Sean Kearney, is here with our final day this week to wrap up building a hexadecimal clock in PowerShell.

When we finished yesterday, …

PowerTip: Set a default value in a switch statement

Summary: Use the default field in switch statement to have an assumed value.

Hey, Scripting Guy! Question I was playing with Select-String and would like to have it default to a value if none was trapped for. How can I do that?

Hey, Scripting Guy! Answer Just …

Build a hexadecimal clock in PowerShell – Part 3

Summary: Use Select-String in PowerShell to identify data and match it to an array.

Honorary Scripting Guy, Sean Kearney, is here today to play more with our funky, nerdy, cool hexadecimal clock.

Yesterday we built out a small function …

PowerTip: Use PowerShell to identify a leap year

Summary: Use PowerShell and Math to identify a leap year.

Hey, Scripting Guy! Question Is there a way to use PowerShell to identify whether this year is a leap year?

Hey, Scripting Guy! Answer Actually there is! You can use a combination of Get-date to find out …

Build a hexadecimal clock in PowerShell – Part 2

Summary: Manipulate string data from Get-Date in PowerShell.

Honorary Scripting Guy, Sean Kearney, is here today to have a little more fun with our silly project to build a hexadecimal clock in the PowerShell console.

Well, after all, who …

PowerTip: Extend a string array in PowerShell

Summary: Use the built in features of PowerShell to easily add new Element to a string array.

Hey, Scripting Guy! Question I created an array of strings in PowerShell, but I need to add to it. Is there a simple way to do …

Build a hexadecimal clock in PowerShell – Part 1

Honorary Scripting Guy, Sean Kearney, is here today, and I’m going to sit down and have some fun this week.

Today I was feeling a bit bored and, for some reason, the thought “hexadecimal clock” entered my head. Don’t ask …

Create Azure Resource Manager virtual machines by using PowerShell – Part 5

Summary: Use the Azure Resource Manager cmdlets to assign credentials and create the virtual machine.

Hey, Scripting Guy! Question Now that I’ve built all the objects for the virtual machine (VM), what’s left before we spin up the machine in Azure Resource Manager?…

Create Azure Resource Manager virtual machines by using PowerShell – Part 4

Summary: Use the Azure Resource Manager cmdlets to select the operating system image for a virtual machine.

Hey, Scripting Guy! Question I’ve got most of that virtual machine (VM) assembled, but I was having quite a time trying to pull together the operating …

Create Azure Resource Manager virtual machines by using PowerShell – Part 3

Summary: Use the Azure Resource Manager cmdlets to create and attach a virtual network card to a virtual machine.

Hey, Scripting Guy! Question I’m trying to find some guidance about how to use PowerShell to create a virtual network card. Would you be …

Create Azure Resource Manager virtual machines by using PowerShell – Part 2

Summary: Use the Azure Resource Manager cmdlets to define the operating system disk on a storage blob for a virtual machine.

Hey, Scripting Guy! Question Would you help me, please?  I need to know how to define storage for my virtual machine in …

Create Azure Resource Manager virtual machines by using PowerShell – Part 1

Summary: Use PowerShell cmdlets to start to create a virtual machine in Azure Resource Manager.

Hey, Scripting Guy! Question How do I create virtual machines (VMs) in Azure Resource Manager by using PowerShell? Where do I start?

Hey, Scripting Guy! Answer Honorary Scripting Guy, Sean Kearney, is …

PowerTip: List all virtual network subnets by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to identify all the available subnets in a particular virtual network.

Hey, Scripting Guy! Question I’m trying to figure out a way to list all the subnet configurations in a virtual network in Azure Resource Manager. …

Retrieve Azure Resource Manager virtual machine properties by using PowerShell – Part 5

Summary: Use PowerShell to retrieve Azure Resource Manager virtual machine properties.

Hey, Scripting Guy! Question There’s one thing I couldn’t figure out that I really need your help on. Just how do you find the virtual network and network security group that a …

Retrieve Azure Resource Manager virtual machine properties by using PowerShell – Part 3

Summary: Identify properties for the operating system of a virtual machine.

Hey, Scripting Guy! Question Can you show me how to identify the properties for the operating system so that I can duplicate a virtual machine?

Hey, Scripting Guy! Answer Honorary Scripting Guy, Sean Kearney, is here …

PowerTip: Specify that a script requires admin privileges to run

Summary: Learn how to require admin privileges to run a Windows PowerShell script.

Hey, Scripting Guy! Question How can I make sure that my Windows PowerShell script has administrator privileges to run?

Hey, Scripting Guy! Answer Use the #Requires directive and specify RunAsAdministrator. Here is an …

Discover relationships by using Group-Object in PowerShell

Summary: Learn how to use one of the most basic Windows PowerShell cmdlets, the Group-Object cmdlet, to see relationships among different objects.

There are some things in life that just seem to always go together: jasmine flowers and green …

Additional resources for text analysis by using PowerShell

Summary: This is a summary of some of the additional resources for working with text and Windows PowerShell.

Good day. Microsoft Scripting Guy, Ed Wilson, is here. So, here’s the deal. We are going along and decide to write …

Compare the letter frequency of two text files with PowerShell

Summary: Learn how to use Windows PowerShell to compare the letter frequency of two different text files.

One thing that is kind of cool is that with Windows PowerShell you can do all kinds of stuff and never have …

Read a text tile and do frequency analysis using PowerShell

Summary: Learn how to read a text file and do a letter-frequency analysis using Windows PowerShell in this article written by the Microsoft Scripting Guy, Ed Wilson.

Today I am going to put the script I wrote yesterday together …

How to skip the beginning and ending of a file with powerShell

Summary: Learn how to skip the beginning and ending portions of a text file by using Windows PowerShell in this article by the Microsoft Scripting Guy Ed Wilson.

 

Good morning, Microsoft Scripting Guy Ed Wilson is here. At …

Letter frequency analysis of text using PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to do letter frequency analysis of a text enabling one to see how often a letter occurs.

So, the other night I was watching a show about cryptography. …

PowerTip: Find your version of PowerShell

Summary: Learn how to find your Windows PowerShell version easily.

Hey, Scripting Guy! Question How can I use Windows PowerShell to tell me what version of Windows PowerShell I am running?

Hey, Scripting Guy! Answer Use the $PsVersionTable automatic variable. To see the major, minor, build, and …

Conceptualize Desired State Configuration: Part 7

Summary: MVP, Will Anderson, wraps up his series by discussing how to add DSC resources to existing Windows PowerShell modules.

Ed Wilson here, bringing you MVP, Will Anderson, and the conclusion of his week of blogging about Desired …

PowerTip: Create list of approved PowerShell verbs

Summary: Learn how to easily produce a list of approved Windows PowerShell verbs.

Hey, Scripting Guy! Question How can I find what verbs are approved for use in a Windows PowerShell function?

Hey, Scripting Guy! Answer Use the Get-Verb cmdlet, and to make it easy to peruse, …

Conceptualize Desired State Configuration: Part 5

Summary: Microsoft MVP, Will Anderson, continues his series by talking about importing DSC resources and adding your scripts.

Good day! Ed Wilson here to welcome back MVP, Will Anderson, as my guest blogger this week. Will is sharing …

PowerTip: Use PowerShell to return first two lines of file

Summary: Learn how to use Windows PowerShell to return the first two lines of a text file.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily return the first two lines of a text file?

Hey, Scripting Guy! Answer Use the Get-Content cmdlet and …

Conceptualize Desired State Configuration: Part 3

Summary: Microsoft MVP, Will Anderson, modifies a Desired State Configuration template.

Good morning. Ed Wilson, Microsoft Scripting Guy, is here. Today we have part three of Will Anderson’s awesome Desired State Configuration (DSC) series. To catch up, be sure …

PowerTip: Find related cmdlet aliases

Summary: Learn how to find aliases related to a series of cmdlets.

Hey, Scripting Guy! Question How can I find aliases that are related to a series of Windows PowerShell cmdlets, such as processes?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet and specify a wildcard character …

Conceptualize Desired State Configuration: Part 2

Summary: Microsoft MVP, Will Anderson, talks about familiarizing yourself with DSC formatting and resources.

Good morning, Ed Wilson is here. Today we have Part 2 of Will Anderson’s awesome DSC series. Be sure you also read Conceptualize Desired State

PowerTip: Find cmdlets and functions related to DSC

Summary: Use Windows PowerShell to find cmdlets and functions related to Desired State Configuration.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly find a list of cmdlets and functions related to
           Desired State Configuration …

Conceptualize Desired State Configuration: Part 1

Summary: Windows PowerShell MVP, Will Anderson, begins a series of posts about using Desired State Configuration in Windows PowerShell.

Ed Wilson, the Microsoft Scripting Guy is here. Today we begin a series of posts about using Desired State Configuration …

Use PowerShell to Work with Data from MS OMS

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to parse data obtained from Microsoft Operations Management Suite.

Microsoft Scripting Guy, Ed Wilson, is here. One of the things I have been working on a lot the …

Introduction to Advanced PowerShell Functions

Summary: Guest blogger, Microsoft MVP, Adam Bertram, talks about advanced Windows PowerShell functions.

Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest post by Microsoft MVP, Adam Bertram. Take it away Adam…

I'm a Pluralsight author …

PowerTip: Identify PowerShell Version

Summary: Learn how to easily find the version of Windows PowerShell, CLR, and WSMan.

Hey, Scripting Guy! Question How can I use Windows PowerShell to identify the version of Windows PowerShell that is running on my system?

Hey, Scripting Guy! Answer Use the $PSversionTable automatic variable (you …

Weekend Scripter: Unexpected Case Sensitivity in PowerShell

Summary: PowerShell MVP, Mike F Robbins, discusses case sensitivity in Windows PowerShell.

Microsoft Scripting Guy, Ed Wilson, is here. Welcome back guest blogger, Mike Robbins.

Photo of Mike Robbins

Mike F Robbins is a Microsoft MVP for Windows PowerShell and a SAPIEN Technologies …

Long String Running

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using a compound string command.

Microsoft Scripting Guy, Ed Wilson, is here. The other day, the Scripting Wife and I headed to Nashville for a couple of speaking engagements. We decided …

Creating Pop-ups by Using PowerShell

Summary: Guest blogger and PowerShell MVP, Chrissy LeMarie, talks about creating pop-ups with Windows PowerShell.

Microsoft Scripting Guy, Ed Wilson, is here. Welcome today a brand new guest blogger, Chrissy LeMaire.

Chrissy is a systems engineer and PowerShell MVP. …

Playing with JSON and PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about playing with JSON and Windows PowerShell 5.0.

Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife has an updated shopping list. It includes a Microsoft Band 2 and a Surface Pro 4. The …

PowerTip: Concatenate String Array with PowerShell

Summary: Use Windows PowerShell to concatenate elements of a array.

Hey, Scripting Guy! Question How can I use Windows PowerShell to concatenate the elements of a string array?

Hey, Scripting Guy! Answer Use the static Concat method from the String class, for example:

$a = "string a"…

Dude, a String Is a String in PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using string methods to determine null or empty in Windows PowerShell.

Hey, Scripting Guy! Question Hey, Scripting Guy! I have a problem with a script. It is used to write data to another application, but …

Weekend Scripter: That’s Not Very PowerShell-Like

Summary: Ed Wilson, Microsoft Scripting Guy, talks about what is Windows PowerShell-like scripting.

Microsoft Scripting Guy, Ed Wilson, is here. Before Internet streaming, before Nabster, before CD-ROMs, before cassette tapes, and before 8-track tapes, there were things called records. …

Weekend Scripter: Parsing the DISM Log with PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about parsing the DISM log with Windows PowerShell.

Microsoft Scripting Guy, Ed Wilson, is here. One of the things I like to do on weekends is mess around. So I was intrigued …

The Death of PowerShell Scripting

Summary: Ed Wilson, Microsoft Scripting Guy, talks about the reduced need to use Windows PowerShell scripting.

Microsoft Scripting Guy, Ed Wilson, is here. If you follow me on Twitter or Facebook, you already know that my new book, Windows

Extending Objects with PowerShell: Week of the Year

Summary: Ed Wilson talks about adding members to an object with Windows PowerShell to get the week of the year.

Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about Windows PowerShell is that it is …

Break Text File into Chunks with PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about breaking the contents of a text file into chunks with Windows PowerShell.

Hey, Scripting Guy! Question Hey, Scripting Guy! The other day, you tweeted Get First 140 Characters from String with PowerShell. That is …

Talk Like a Pirate—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, talks a bit about the script he wrote to translate pirate speech by using Invoke-WebRequest.

Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk a bit …

How to Use Try/Catch/Finally for Non-Terminating Errors

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell and Try/Catch/Finally for non-terminating errors.

Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video about using Windows PowerShell Try/Catch/Finally

Understanding Two Types of PowerShell Errors—The Video

Summary: In this video, Ed Wilson, Microsoft Scripting Guy, talks about two types of Windows PowerShell errors.

Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video I made about structured error handling, in specific, …

Understanding Non-Terminating Errors in PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about understanding non-terminating errors in Windows PowerShell.

Hey, Scripting Guy! Question Hey, Scripting Guy! Yesterday in Error Handling: Two Types of Errors, you were talking about terminating errors and how you can use Try/…

Error Handling: Two Types of Errors

Summary: Ed Wilson, Microsoft Scripting Guy, talks about error handling and two types of errors.

Hey, Scripting Guy! Question Hey, Scripting Guy! I really don’t get it. Everyone tells me I need to use Try/Catch/Finally to catch errors, but …

Backwards Compatibility in PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about backwards compatibility in Windows PowerShell.

Hey, Scripting Guy! Question Hey, Scripting Guy! I wrote a script on a system with Windows PowerShell 4.0 installed. Is there an easy way to find out the earliest version of …

Weekend Scripter: Overloaded Class Constructors in PowerShell 5—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, introduces a video about overloaded class constructors in Windows PowerShell 5.0 in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. This is my birthday weekend, so today the Scripting Wife decided to take …

Overriding Inheritance in PowerShell 5 Classes

Summary: Ed Wilson, Microsoft Scripting Guy, talks about overriding inheritance in Windows PowerShell 5.0 classes.

Microsoft Scripting Guy, Ed Wilson, is here. One of the things that is pretty cool about Windows PowerShell 5.0 classes, is that I can …

PowerShell 5 classes: Constructor Overloading

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using the new Windows PowerShell 5.0 class feature in Windows 10 and doing constructor overloading.

Microsoft Scripting Guy, Ed Wilson, is here. Today I want to talk about overloaded constructors. I …

Weekend Scripter: Create a Simple PowerShell 5 Class—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video about adding members to Windows PowerShell 5.0 classes in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. Today I want to present a video I made that illustrates how …

Weekend Scripter: Introduction to PowerShell 5 classes—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video to introduce Windows PowerShell 5 classes in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. It is a wonderful morning here in central Florida. The sun is already shining, …

Adding Methods to a PowerShell 5 Class

Summary: Ed Wilson, Microsoft Scripting Guy, talks about adding methods to a Windows PowerShell 5.0 class in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. Having a bunch of properties, although cool, is in the end, rather unsatisfying. …

Creating Instances of PowerShell 5 Classes

Summary: Ed Wilson, Microsoft Scripting Guy, talks about creating instances of Windows PowerShell 5.0 classes in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. Today I am up early. I have the windows open, and I am enjoying the …

Adding Enums to PowerShell 5 Classes

Summary: Ed Wilson, Microsoft Scripting Guy, talks about adding enums to Windows PowerShell 5.0 classes in Windows 10.

Microsoft Scripting Guy, Ed Wilson, is here. It is my birthday week…almost. It is the kind of thing that one needs …

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 …

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 …

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 …

PowerTip: Find Numeric Value of Enum in PowerShell

Summary: Learn how to easily find the numeric value of an enum in Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily find the numeric value of an enumeration?

Hey, Scripting Guy! Answer Use square brackets to call the enum, call the …

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 …

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 …

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! Question Hey, Scripting Guy! I kind of like the idea of creating a manifest for my Windows PowerShell module, but it seems like …

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) …

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 …

PowerTip: Use PowerShell to Check Logon Server for Client

Summary: Use Windows PowerShell to check the logon server of your clients.

Hey, Scripting Guy! Question How can I use Windows PowerShell to verify if my users are trying to sign in to their computers with a Windows account