Tag: Sean Kearney Page 1 of 2

Script Wars: The Farce Awakens (part V)

Summary: Rey is skilled in PowerShell, and new to Contoso Holly Jolly Hat Company. Already she has been a great boon to her new co-workers and had her sneakers become the subject of a hungry trash robot.

She was just …

Script Wars: The Farce Awakens (part IV)

Summary: A quick recap shall we? Newly graduated from IT training and future guru in the world of Windows PowerShell, Rey Skyworker has been hired on by her mentor, Ben Kerberosie. Already, she has helped peers from her team improve …

Script Wars: The Farce Awakens (part III)

Summary: When last we saw our hero, Rey Skyworker, she was aiding her new co-worker, Tin. They managed to implement better error trapping by using the “Try Catch” statement in Windows PowerShell. The fact they could do this so easily …

Script Wars: The Farce Awakens (part II)

Summary: Yesterday, we met a newly graduated IT professional, Rey Skyworker, as she discussed the ways of “The Farce.” It was during this discussion that her instructor, Ben Kerberosie, discovered she had a natural gift in understanding how to implement …

Script Wars: The Farce Awakens (part I)

Summary: Seven years ago, “Hey, Scripting Guy!” was approached by a member of the community to see if we would be interested in doing something a little fun for the holidays.  The result was a seven-part series called “A PowerShell …

PowerTip: Get the Notes field when accessing users or groups in Active Directory

Summary: Use the Active Directory Module to get the information from the “Notes” field.

Hey, Scripting Guy! Question I’m trying to find the Active Directory property to use to access the Notes field when I’m viewing a user or a group. Could you …

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

PowerTip: Get a list of local Users in Windows 10 / Windows Server 2016

Summary: Use the cmdlets provided in PowerShell 5.1 to manage local user accounts on a system.

Hey, Scripting Guy! Question I remember having to use the Active Directory Service Interfaces (ADSI) accelerator to access a list of local users in PowerShell. Is there …

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 …

PowerTip: Use PowerShell to determine active CIM sessions

Summary: Use the Common Information Model (CIM) cmdlets to pull a list of active sessions to remote workstations.

Hey, Scripting Guy! Question How can I find active CIM sessions on my workstation?

Hey, Scripting Guy! Answer Just use this one cmdlet to list all active CIM sessions, …

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

PowerTip: List locked-out accounts in Active Directory with PowerShell

Summary: Use Active Directory cmdlets to identify locked-out user accounts and computer accounts.

Hey, Scripting Guy! Question Is there a quick and easy way to find all users who are locked out in Active Directory by using PowerShell?

 

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

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 …

PowerTip: Limit Get-Childitem to a limited depth in the tree

Summary: Use the new -depth parameter to control how far down a directory you can search.

Hey, Scripting Guy! Question I have a large file structure to search but I only want to go two folders deep on the search.  Is there a …

Curly Blue and the meaning of scripting – Part 1

Summary: Curly Blue learns how to automate cleaning of old data files by using PowerShell.

This week, in the spirit of the holidays (and of course the previous six years!), Hey, Scripting Guy is honored to bring forth a …

PowerTip: Capture the output of a Linux application in PowerShell

Summary: Use the built-in features of PowerShell to obtain data produced by a Linux application.

Hey, Scripting Guy! Question Can I run a Linux application like ls and capture its output in PowerShell?

Hey, Scripting Guy! Answer You certainly can!  It’s no different from when you normally …

Open Source PowerShell – Part 4

Summary: Install and Configure SSH for Open Source PowerShell remoting.

Hey, Scripting Guy! Question With PowerShell, up to this point, one thing that I love is the ability to connect various systems in my environment and run cmdlets on them remotely.  Can we …

PowerTip: Return a status code to Linux from PowerShell

Summary: Pass a result code back to a calling Linux environment from Open Source PowerShell.

Hey, Scripting Guy! Question How can I pass a numeric value back to a calling Bash Shell to indicate an error?

Hey, Scripting Guy! Answer Just simply supply the EXIT command and …

Open Source PowerShell – Part 3

Summary: Pass and return data correctly between Bash and Open Source PowerShell.

Hey, Scripting Guy! Question Could you show me some examples of actually passing and returning values between PowerShell and Bash?

Hey, Scripting Guy! Answer Honorary Scripting Guy, Sean Kearney, is here today and we’ll do …

PowerTip: Get the status code of a PowerShell script in Bash

Summary: Identify the results of a script running in Open Source PowerShell in a Bash environment.

Hey, Scripting Guy! Question Is there any way to see the results of a PowerShell script? For example, if somebody sent an “Exit 42”, could I see …

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 …

PowerTip: Capture error code of a PowerShell session in Linux or macOS

Summary: Capture the status code of a PowerShell session in Linux or macOS.

Hey, Scripting Guy! Question Could you show me how to run a PowerShell script in Linux or macOS and capture the status of whether that script succeeded or failed?

Hey, Scripting Guy! Answer No …

Open Source PowerShell – Part 1

Summary: Find and install the Open Source PowerShell software for Linux or Windows.

Hey, Scripting Guy! Question I was reading up about a great new change in PowerShell. I heard that the newest version was Open Sourced on GitHub. Any chance you could …

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 the color of the progress bar with PowerShell

Summary: Use the $Host object to alter the color of the progress bar in PowerShell.

Hey, Scripting Guy! Question I was curious if there’s a way to change the color of the progress bar in PowerShell. Do you know how this could be …

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 …

PowerTip: Export Azure resource group as JSON by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to export a resource group as a JSON configuration.

Hey, Scripting Guy! Question I’ve heard that JSON is used to define features in Azure Resource Manager. Is there a way to export a resource group in …

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

PowerTip: Search Azure Resource Manager image publishers by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to search publishers for a match.

Hey, Scripting Guy! Question Could you show me an example of how to search through the list of publishers for Azure images?

Hey, Scripting Guy! Answer Just use the Get-AzureRMVMImagePublisher cmdlet, and filter on …

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 …

PowerTip: Change current Azure Resource Manager subscription by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to alter the current active subscription in use.

Hey, Scripting Guy! Question I have about a dozen different subscriptions in my Azure Resource Manager account. How can I change it from the default one to one …

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 …

PowerTip: Get the time and date as a string of numbers by using PowerShell

Summary: Use the –format option in Get-Date to change the output.

Hey, Scripting Guy! Question I’d like to build some log files and have the date and time as part of the name. Is there a way to show the date and time …

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 …

PowerTip: Find available virtual machine size by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to get the proper name for a virtual machine size.

Hey, Scripting Guy! Question Is there a way to see the proper name for a virtual machine size without creating a virtual machine first?

Hey, Scripting Guy! Answer Just use …

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 …

PowerTip: List all Azure Resource Manager storage accounts by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to identify available storage accounts.

Hey, Scripting Guy! Question I’m working a client site, and they’d like me to document the configuration of their Azure Resource Manager environment. I’m in desperate need of a list of …

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

Summary: Find storage groups by using PowerShell.

Hey, Scripting Guy! Question Could you lend me a hand? I’m trying to find properties, like the current storage group that a virtual machine uses, in Azure Resource Manager, and I’m having some difficulty.

Hey, Scripting Guy! Answer Honorary Scripting Guy, …

PowerTip: List Azure Resource Manager resources assigned to a resource group by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to show resources that are assigned under a resource group.

Hey, Scripting Guy! Question I looked at the console for Azure Resource Manager and can see all the resources for a particular resource group. Is there …

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: Get Azure Virtual Machine Diagnostics by using PowerShell

Summary: Use the Azure Resource Manager cmdlets to retrieve diagnostic data within Azure Resource Manager virtual machines.

Hey, Scripting Guy! Question Our QA department was asking a very specific question that I didn’t know how to answer. Is there anything in an Azure …

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

Summary: Use the Azure Resource Manager cmdlets to get the machine size from a virtual machine.

Hey, Scripting Guy! Question I remember that yesterday we created a virtual machine (VM), and you mentioned we could find out things like the size of the …

PowerTip: Show Azure Resource Manager virtual machine status with PowerShell

Summary: Using the Azure Resource Manager cmdlets to see the running state of a virtual machine.

Hey, Scripting Guy! Question I remember using the old cmdlets for Azure, and they would show the status of my virtual machines.  How can I do that …

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

Summary: Use the Azure Resource Manager cmdlets to create a virtual machine.

Hey, Scripting Guy! Question I was curious about something. Could you show me a simple example to create a virtual machine (VM) in Azure Resource Manager?

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

PowerTip: List Azure Resource Manager virtual networks with PowerShell

Summary: Use the AzureRM cmdlets to list all available virtual networks in a subscription.

Hey, Scripting Guy! Question I’m doing work for a client who forgot to give me a list of the virtual networks in the client’s Azure subscription. Could you save …

Work with the Azure Resource Manager cmdlets – Part 5

Summary: Here’s how to use PowerShell to create a virtual network and a network security group.

Hey, Scripting Guy! Question I’ve heard that networking is far more powerful in Azure Resource Manager. Could you take a few minutes to show me how to …

PowerTip: View properties from a storage account with PowerShell

Summary: View and access the SKU from a storage account for future use.

Hey, Scripting Guy! Question I went to work with the New-AzureRMStorageAccount cmdlet but was confused about how to know which name to use for the SKU. Is there an easy

Work with the Azure Resource Manager cmdlets – Part 4

Summary: Learn how to use PowerShell to create storage accounts.

Hey, Scripting Guy! Question Now that we know how to create resource groups, what is our next step to prepare the Azure Resource Manager infrastructure for virtual machines (VMs)?

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

PowerTip: Get all Azure Resource Manager resource groups with PowerShell

Summary: Using the AzureRM cmdlets to get a list of resource groups.

Hey, Scripting Guy! Question I have a client who has a large list of resource groups. Can you show me how to get a filtered list?

Hey, Scripting Guy! Answer Just use the Get-AzureRMResourceGroup cmdlet …

Work with the AzureRM cmdlets – Part 3

Summary: Create and access resource groups with the AzureRM cmdlets.

Hey, Scripting Guy! Question I’m happily sitting here logged into Azure with the AzureRM cmdlets and would like to start with resource groups.  Could you show me where to start?

Hey, Scripting Guy! Answer Honorary Scripting Guy, …

PowerTip: Get a list of all subscriptions in your Azure Resource Manager account

Summary: Use the Get-AzureRMSubscription cmdlet.

Hey, Scripting Guy! Question How can I see all of the available subscriptions when I am logged into Azure Resource Manager?

Hey, Scripting Guy! Answer Just run the Get-AzureRMSubscription cmdlet to get a complete list available to your UserID.

Get-AzureRMSubscription

Work with the AzureRM cmdlets – Part 2

Summary: Authenticate to Azure with the AzureRM cmdlets.

Hey, Scripting Guy! Question I’ve got the new AzureRM cmdlets installed, but I’m just not sure where to start! Could you give me a nudge in the right direction?

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

PowerTip: Find a module in the PowerShell Gallery

Summary: Use the PowerShell Find module to search for modules.

Hey, Scripting Guy! Question I was trying to use the Find-module. Can you show me how to find all modules that have the word, Azure, in them?

Hey, Scripting Guy! Answer Just use a wildcard in the …

Work with the AzureRM cmdlets – Part 1

Summary: Obtain and install the AzureRM cmdlets.

Hey, Scripting Guy! Question Hey, Scripting Guy!

I heard Microsoft introduced some new cmdlets to work with Azure Resource Manager.   Could you show me how I could install them?

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

PowerTip: Automatically Enable PowerShell ISE Toolbar

Summary: Ensure that the Windows PowerShell ISE toolbar is always enabled.

Hey, Scripting Guy! Question How can I use Windows PowerShell to turn on the ISE toolbar?

Hey, Scripting Guy! Answer Turn on the toolbar with the following command:

$psISE.Options.ShowToolBar=$True

To turn it off, change the value …

A Favorite PowerShell ISE Feature: Remote Text File Editing

Summary: Sean Kearney shows you how to edit files remotely in the Windows PowerShell ISE.       

Honorary Scripting Guy, Sean Kearney, is here today to show you the last of the little nuggets I love to use …

PowerTip: List All Files Open in PowerShell ISE

Summary: Get a list of all files that are currently open in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I pull a list of anything that I am currently editing in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use this command to get …

A Favorite PowerShell ISE Feature: Snippets

Summary: Sean Kearney shows you how to get sample code in the Windows PowerShell ISE.

Honorary Scripting Guy, Sean Kearney, is here today to show you a really cool feature that has been in Windows PowerShell ISE for a while, …

PowerTip: Determine Which Files in ISE Are Saved

Summary: Easily identify which files have been saved in the PowerShell ISE.

Hey, Scripting Guy! Question How can I see which of my open files in the Windows PowerShell ISE been saved?

Hey, Scripting Guy! Answer To show a list of files that have been saved, run …

A Favorite PowerShell ISE Feature: Module Browser

Summary: Sean Kearney shows you how to access modules in the PowerShell Gallery.

Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a feature you may not have heard of called the Module Browser for the …

PowerTip: Set Zoom Level in PowerShell ISE

Summary: Automatically set the zoom level in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I programmatically adjust the zoom for my font size in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Set the Zoom property—for example, to adjust the font to 150%, run:…

A Favorite PowerShell ISE Feature: Script Browser

Summary: Sean Kearney shows you how to browse the TechNet Script Repository from the PowerShell ISE.

Honorary Scripting Guy, Sean Kearney, is here today to introduce you to a pretty cool feature that is available in the Windows PowerShell …

PowerTip: Edit Profile for PowerShell ISE

Summary: Identify and edit the autostart features for the Windows PowerShell ISE.

Hey, Scripting Guy! Question Is there something similar to the $Profile feature in the Windows PowerShell console that I can use to customize
           my Windows PowerShell …

A Favorite PowerShell ISE Feature: Script Analyzer

Summary: Sean Kearney introduces a free tool for examining your script.

Honorary Scripting Guy, Sean Kearney, is here. This week I’m going to introduce you to my favorite Windows PowerShell ISE features. Today, I’m talking about a free add-on …

PowerTip: Restore PowerShell ISE to Default Settings

Summary: Learn how to restore the Windows PowerShell ISE to its default configurations.

Hey, Scripting Guy! Question How can I restore the Windows PowerShell ISE to its default configurations?

Hey, Scripting Guy! Answer Use the four built-in RestoreDefault methods with the PSise object to bring back everything …

Weekend Scripter: Customize PowerShell Title and Prompt

Summary: Learn how to interactively update the Windows PowerShell prompt and title.

Honorary Scripting Guy, Sean Kearney, is here today to have a little bit of fun with the Windows PowerShell console. Why not? It’s a Sunday, it’s the …

PowerTip: Set Personal Environment Variable from PowerShell

Summary: Access the $ENV object in Windows PowerShell to alter personal environment settings.

Hey, Scripting Guy! Question How can I use Windows PowerShell to change a system environment variable such as the user %TEMP%?

Hey, Scripting Guy! Answer You can read any personal environment settings by using …

Learn Easier Way to Build Command for PowerShell.exe

Summary: Learn how to parse a here-string with Windows PowerShell.

Honorary Scripting Guy, Sean Kearney, is here to show you a neat little trick.

Anyone who has ever scheduled a PowerShell task knows that if you want to launch …

PowerTip: Save Help Content for Module

Summary: Learn how to target content to save with the Save-Help cmdlet.

Hey, Scripting Guy! Question How can I use Windows PowerShell to save the Help content for a single module?

Hey, Scripting Guy! Answer Use the –module parameter with the Save-Help cmdlet, for example:

Save-Help –module …

Advanced Use of Azure Virtual Machine DSC Extensions

Summary: Matthew Hitchcock takes us through a deeper look at Azure DSC.

It's an honor for me to be writing my first Hey, Scripting Guys! Blog post! I'd like to share something I have been doing a lot of …

PowerTip: Find Scripts in Script Center Repository from PowerShell ISE

Summary: Use a free add-on to directly access scripts and modules from the Windows PowerShell ISE.

Hey, Scripting Guy! Question In Windows PowerShell 5.0, I can access the TechNet Gallery for PowerShell modules, but is there an easy way
        …

A Holiday Special: Rusty the Red-Eyed Scripter, Part 5

Summary: Rusty discovers the power of classes and enums in Windows Powershell 5.0.

Note This is Part 4 in a five-part series. To catch up, read:

PowerTip: Convert Data to Hexadecimal Output in PowerShell 5

Summary: Use the Format-Hex cmdlet to produce hexadecimal output.

Hey, Scripting Guy! Question How can I use Windows PowerShell to put data in a binary key in the registry?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0, you can use the Format-Hex cmdlet, for example:

‘This is …

A Holiday Special: Rusty the Red-Eyed Scripter, Part 4

Summary: Rusty the Red-Eyed Scripter learns how PowerShell can convert raw string data to an object.

   Note This is Part 4 in a five-part series. To catch up, read:

PowerTip: Clear Recycle Bin with PowerShell 5

Summary: Easily purge the Recycle Bin on a targeted drive with PowerShell 5.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily flush out the Recycle Bin?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0, use the Clear-RecycleBin cmdlet. For example, run the
  …

A Holiday Special: Rusty the Red-Eyed Scripter, Part 3

Summary: Rusty the Red-Eyed Scripter learns how to unblock files and tweak event logs with Windows PowerShell 5.0.

Note This is Part 3 in a five-part series. To catch up, read:

PowerTip: Uninstall Module with PowerShell 5

Summary: Learn how to uninstall a Windows PowerShell module.

Hey, Scripting Guy! Question How can I easily uninstall a Windows PowerShell module?

Hey, Scripting Guy! Answer Use the Uninstall-Module cmdlet to remove anything discovered by using Find-Module. For example,
           to permanently …

A Holiday Special: Rusty the Red-Eyed Scripter, Part 2

Summary: Rusty the Red-Eyed Scripter discovers how Windows PowerShell 5.0 can pull modules from a central repository.

   Note  This is Part 2 in a five-part series. To get started, read Rusty the Red-Eyed Scripter, Part 1.

We …

PowerTip: Eliminate Duplicates in PowerShell History

Summary: Use an option in the PSReadLine module to control Windows PowerShell 5.0 history duplication.

Hey, Scripting Guy! Question How can I make sure that there are no duplicates in my history?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0 with the PSReadLineModule loaded, use the Set-PSReadLineOption

A Holiday Special: Rusty the Red-Eyed Scripter, Part 1

Summary: Rusty the Red-Eyed Scripter discovers compressing files and working with the Clipboard in PowerShell 5.0.

It’s that time again folks—time for the long awaited holiday tradition on the Hey, Scripting Guys! Blog. Get ready for some horrible music …

PowerTip: Determine Size of Folder with PowerShell

Summary: Use Windows PowerShell to determine the size of a folder.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily get the size of a folder structure?

Hey, Scripting Guy! Answer Use a combination of Get-Childitem and Measure-Object. For example, to see the …

Build a Better Copy-Item Cmdlet

Summary: Sean Kearney investigates how to navigate file system content.

Honorary Scripting Guy, Sean Kearney, is here with an early holiday gift—a way to deal with copying many files and getting some kind of progress on the update.

I …

PowerTip: Use PowerShell to Change Colors in PSReadline Module

Summary: Learn how to use Windows PowerShell access color options in the PSReadline module.

Hey, Scripting Guy! Question How can I use Windows PowerShell to alter the colors in the PSReadline module?

Hey, Scripting Guy! Answer Use the Set-PSReadlineOption cmdlet to alter pretty much any item.
  …

PowerTip: Find Module Path with Windows PowerShell

Summary: Use Windows PowerShell to determine the location of a module.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find the location of a module that I am using from a vendor?

Hey, Scripting Guy! Answer Use the Path property of the module with …