PowerTip: Eliminate Duplicates in PowerShell History

Summary: Use an option in the PSReadLine module to control Windows PowerShell 5.0 history duplication.  How can I make sure that there are no duplicates in my history?  In Windows PowerShell 5.0 with the PSReadLineModule loaded, use the Set-PSReadLineOption            cmdlet as follows: Set-PSReadLineOption –HistoryNoDuplicates:$True


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 and a fun story involving PowerShell. This is our sixth year running the holiday special, so…


PowerTip: Determine Size of Folder with PowerShell

Summary: Use Windows PowerShell to determine the size of a folder.  How can I use Windows PowerShell to easily get the size of a folder structure?  Use a combination of Get-Childitem and Measure-Object. For example, to see the size of the C:\Foo folder            structure in Windows PowerShell 5.0 or 4.0, use: Get-Childitem C:\Foo…


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 ran into this problem when I was duplicating file structures onto USB keys for Windows to…


PowerTip: Use PowerShell to Change Colors in PSReadline Module

Summary: Learn how to use Windows PowerShell access color options in the PSReadline module.  How can I use Windows PowerShell to alter the colors in the PSReadline module?  Use the Set-PSReadlineOption cmdlet to alter pretty much any item.            For example, to provide a white foreground for error messages, use: Set-PSReadlineOption –ErrorForegroundColor White


Introducing the PowerShell Extension for Visual Studio Code

Summary: Doug Finke, Microsoft MVP, introduces a new way to edit code. There’s a new editor in town and as with any new shiny toy, it’s a good to download, kick the tires, and give it the seven day test. The seven day test is when you install it, try it, and see if you…


PowerTip: Contribute to the Pester Project

Summary: Learn how you can add to the Pester solution.  How can I contribute to Pester?  On the project’s GitHub site, submit bug reports or feature requests in the Issues log,            or submit your code via a Pull Request.


More Pester Features and Resources

Summary: Dave Wyatt wraps up his week teaching us about Pester with information about more resources.    Note   This is a five-part series that includes the following posts: What is Pester and Why Should I Care? Learn about a new test framework for PowerShell called Pester Getting Started with Pester Learn how to get information back…


PowerTip: Use Pester to Test Functions in Module

Summary: Use Pester to test new functions in your module.  How can I unit test a non-exported function in my script module?  Use the InModuleScope command to execute some or all of your Pester script within the scope of            the module you’re testing.


Testing Script Modules with Pester

Summary: Dave Wyatt discusses using Pester for testing PowerShell modules.    Note   This is a five-part series that includes the following posts: What is Pester and Why Should I Care?Learn about a new test framework for PowerShell called Pester Getting Started with PesterLearn how to get information back from Pester Unit Testing PowerShell Code with PesterUse…