WinGet and Beyond
WinGet and Beyond
Mastering Windows Package Management and more
About the Book
WinGet and Beyond is your no-nonsense, hands-on guide to mastering WinGet and unlocking the full potential of Windows package management. Written with a casual tone and packed with practical hands-on exercises, this book is all about helping you get things done — whether it’s deploying apps, automating installs, or managing your system configurations like a pro.
Here’s what you’ll find inside:
- A crash course in WinGet: Learn the commands, workflows, and best practices to become a WinGet pro.
- Advanced WinGet features: Dive deeper into WinGet's advanced features, learn about user and administrator settings, and tips and tricks
- Build WinGet package: Build your own WinGet package and prepare yourself to publish it to the Windows Package Manager repository
- Create private WinGet Source: Learn how to set up private WinGet repositories using Azure or WinGet.pro for secure, custom package management
- WinGet, DSC and PowerShell: Explore how to integrate WinGet with Desired State Configuration (DSC) and PowerShell for powerful automation and configuration management
- Introducing DevHome: Discover how DevHome enhances developer productivity and how WinGet seamlessly integrates to manage packages and streamline workflows
Table of Contents
- About this book
- Why use WinGet?
- Who is this book for?
- The “Beyond” Vision
- How to use this book
- Code listings and typographic conventions
- What you need for this book
- Feedback
- Version information
- Dedication
- Chapter 1 - Getting Started with WinGet
- How to install WinGet
- Using the Microsoft Store
- Installing WinGet with PowerShell
- Using GitHub releases
- Installing preview release
- Alternative methods
- Upgrading WinGet
- Discovering basic WinGet commands
- Ask for Help
- Run your first search in Microsoft Store
- Show package information
- Installing package
- Upgrade package
- Uninstall package
- Your first WinGet Configuration File
- Troubleshooting
- Hands-on practice
- Summary
- How to install WinGet
- Chapter 2 - Advanced WinGet Features
- Argument completers and Schemas
- Authoring WinGet Configuration file
- Breaking down resources
- Assert $True or $False
- Using Parameters in configurations
- Discover settings
- How to customize WinGet’s user settings file
- Enabling visual modes
- Telemetry
- Experimental features
- Configure installation behavior
- Set interactivity
- Log channels and levels
- Settings for network
- Downloading PowerShell modules
- Downloading packages
- Controlling uninstallation behavior
- Customize administrator settings
- Bypass certificate pinning for Microsoft Store
- Install local manifest files
- Malware scanning override
- Hash validation
- Enable proxy options
- How to configure WinGet with Group Policy Objects
- Tips and tricks
- Tip 1 - Customize installation
- Tip 2 - Capture dependencies for uninstallation
- Tip 3 - Exporting and Importing Configurations
- Tip 4 - Silent and automated installations
- Tip 5 - Just “pin” it
- Tip 6 - Scheduling
- Tip 7 - Multiple installations
- Tip 8 - Scope installations
- Hands-on practice
- Summary
- Chapter 3 - Building WinGet package
- Understanding the basics
- Creating YAML manifest files
- Manually create YAML manifest files
- Automatically create YAML files
- Explore wingetcreate Commands
- Managing and Updating Existing Packages
- Alternatives to
wingetcreate
yamlcreate.ps1
dumplings
- Hands-on practice
- Summary
- Chapter 4 - Create private WinGet source
- Why host private WinGet source
- Host private WinGet source in Azure
- Prerequisites
- Installing and discover commands in Microsoft.WinGet.RestSource
- Add-WinGetManifest
- Find-WinGetManifest
- Get-WinGetManifest
- New-WinGetSource
- Remove-WinGetManifest
- Update-WinGetSource
- Create private Windows Package Manager REST source in Azure
- Upload manifests to private Windows Package Manager REST source
- Using Microsoft Entra ID authentication
- Host local WinGet source using winget.pro
- Hands-on practice
- Summary
- Chapter 5 - WinGet, PowerShell and DSC
- Connecting between WinGet, PowerShell and DSC
- Exploring WinGet’s PowerShell module
- Get-WinGetUserSettings
- Set-WinGetUserSettings
- Test-WinGetUserSettings
- Add-WinGetSource
- Assert-WinGetPackageManager
- Disable-WinGetSetting
- Enable-WinGetSetting
- Export-WinGetPackage
- Find-WinGetPackage
- Get-WinGetPackage
- Get-WinGetSetting
- Get-WinGetSource
- Get-WinGetVersion
- Install-WinGetPackage
- Remove-WinGetSource
- Repair-WinGetPackage
- Reset-WinGetSource
- Uninstall-WinGetPackage
- Update-WinGetPackage
- How to discover DSC resources
- Building DSC resource
- Hands-on practice
- Summary
- Chapter 6 - Introducing DevHome
- What is DevHome?
- Installing DevHome
- Exploring DevHome Dashboard
- Integrating DevHome with WinGet
- Hands-on practice
- Summary
- Release notes
- About this book
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them