PowerShell - Add repository

By xngo on January 5, 2020

Add repository

Add PSWindowsUpdate module from https://www.powershellgallery.com/packages/PSWindowsUpdate/2.1.1.2 repository.

Register-PSRepository -Name "PSWindowsUpdate" `
    -SourceLocation "https://www.powershellgallery.com/packages/PSWindowsUpdate/2.1.1.2"

List registered repositories

Get-PSRepository

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.