July 2018
Beginner
552 pages
13h 18m
English
If your user's account can install modules in either his own user scope or the machine scope, they will be fine. By giving only a subset of your users write-access to the gallery, you can effectively narrow down who is even allowed to publish production code. Another suggestion would be to give everyone read-access and allow write-access only to gallery administrators, as well as dedicated build services for teams or projects:
# Register internal repositoryRegister-PSRepository -Name Internal -SourceLocation https://NUGSV01/api/v2 -PublishLocation https://NUGSV01/api/v2/package# Recreate PSGallery repository if it has been removedRegister-PSRepository -Default# Discover any existing modulesFind-Module -Repository Internal
Read now
Unlock full access