question

sns1 avatar image
0 Votes"
sns1 asked LimitlessTechnology-2700 edited

PowerSHell Gallery is not registering

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



windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered LimitlessTechnology-2700 edited

Hi @sns1

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://docs.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://docs.microsoft.com/en-us/windows-server/administration/windows-commands/powershell


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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.