Using DeployImage and Windows PowerShell to Build a Nano Server: Part 5
Summary: Use the DeployImage module to build bootable Windows PE media with deployment content.Honorary Scripting Guy, Sean Kearney, is here today to show you one of my favorite pieces of my...
View ArticlePowerTip: Find Module Path with Windows PowerShell
Summary: Use Windows PowerShell to determine the location of a module. How can I use Windows PowerShell to find the location of a module that I am using from a vendor? Use the Path property of the...
View ArticleWeekend Scripter: PowerShell ASCII Bar Charts
Summary: Microsoft PFE, Wei Hao Lim, presents a script that creates ASCII bar charts.Microsoft Scripting Guy, Ed Wilson, is here. Today we have a new guest blogger. Please welcome Wei Hao Lim.Wei is a...
View ArticlePowerTip: Time How Long PowerShell Command Takes to Complete
Summary: Easily time how long a Windows PowerShell command takes to complete. How can I time how long a command takes to complete in Windows PowerShell? Use the Measure-Command cmdlet—for example, to...
View ArticleWeekend Scripter: Conceptual PowerShell Help
Summary: Guest blogger, Tim Warner, talks about using Windows PowerShell conceptual Help.Microsoft Scripting Guy, Ed Wilson, is here. Welcome back Timothy Warner as our guest blogger today.Tim is an...
View ArticlePowerTip: Find List of PowerShell About Topics
Summary: Find a list of Windows PowerShell About topics. How can I find Help topics so I can learn about various Windows PowerShell concepts? Use Get-Help and a wildcard character, for example:Get-Help...
View ArticleWhat is Pester and Why Should I Care?
Summary: Guest blogger, Dave Wyatt introduces a new test framework for PowerShell called Pester.This week we are honored to have one of the authors of Pester here with us on the Hey, Scripting Guys!...
View ArticlePowerTip: Get Started with Pester Tests and PowerShell
Summary: Learn how to start a Pester test. How do I run Pester tests? Place your tests into a file with a name that ends with .Tests.ps1, and then run the Invoke-Pester cmdlet.
View ArticleGetting Started with Pester
Summary: Guest blogger, Dave Wyatt explains how to get information back from Pester.At the end of yesterday’s post, What is Pester and Why Should I Care?, I showed this brief example of a .Tests.ps1...
View ArticlePowerTip: Connect Pester to Automated System
Summary: Learn how to incorporate Pester into an automated system. How do I incorporate Pester into an automated system? Use one of the features in Pester that are built for this purpose: NUnit XML...
View ArticleUnit Testing PowerShell Code with Pester
Summary: Guest blogger, Dave Wyatt, discusses using Pester to analyze small pieces of Windows PowerShell code. Note This is Part 3 of a five-part series. Also see:What is Pester and Why Should I...
View ArticlePowerTip: Test Active Directory Script with Pester
Summary: Use Pester to safely test script changes to Active Directory. How can I test my Active Directory script without having it make changes to my live domain? Use Pester’s mocking feature to test...
View ArticleTesting Script Modules with Pester
Summary: Dave Wyatt discusses using Pester for testing PowerShell modules. Note This is Part 4 of a five-part series. Also see:What is Pester and Why Should I Care?Getting Started with PesterUnit...
View ArticlePowerTip: 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...
View ArticleMore 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...
View ArticlePowerTip: 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...
View ArticleIntroducing 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...
View ArticlePowerTip: 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...
View ArticleBuild 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...
View ArticlePowerTip: 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....
View Article