get-psRepository returns all module repositories that are registered for the user running the command. This information is returned as an array of psCustomObject. PS: C:\> get-psRepository Name InstallationPolicy SourceLocation ---- ------------------ -------------- PSGallery Untrusted https://www.powershellgallery.com/api/v2