PowerSHell Gallery is not registering

sns 8,656 Reputation points

I have tried to execute below command attached in screenshot. Please help 197342-errorforpsgallerypng.png197343-powershellerrorinbuild.png

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,892 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 37,771 Reputation points

    Hi @sns

    Thanks for writing and we are happy to help you regarding the PowerShell script.

    Please find more details about the register command in following URL.


    Kindly try following command to register the PSGallery repository.

    Register-PSRepository -Default

    I'm able to register without any error

    PS C:\Users\ravi2_000> Get-PSRepository

    Name InstallationPolicy SourceLocation
    PSGallery Untrusted *************

    Here is a helpful page with information about Windows PowerShell



    --If the reply is helpful, please Upvote and Accept as answer.--

    0 comments No comments