PowerSHell Gallery is not registering

sns 9,236 Reputation points
2022-04-28T10:12:37.167+00:00

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.
5,576 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,711 Reputation points
    2022-05-04T22:39:33.343+00:00

    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.

    https://learn.microsoft.com/en-us/powershell/module/powershellget/register-psrepository?view=powershell-7.2

    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

    https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/powershell

    ------------

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.