Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import-Module PowerShellGet
- if (-not (Get-PSRepository -Name 'WSPGallery' -ErrorAction Ignore)) {
- $paramRegisterPSRepository = @{
- Name = 'WSPGallery'
- SourceLocation = '\\enaaritt01\WSPGallery'
- PublishLocation = '\\enaaritt01\WSPGallery\modules'
- ScriptSourceLocation = '\\enaaritt01\WSPGallery'
- ScriptPublishLocation = '\\enaaritt01\WSPGallery\scripts'
- InstallationPolicy = 'Trusted'
- }
- Register-PSRepository @paramRegisterPSRepository
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement