Skip to content

[PREVIEW ONLY] DSC Resources and Configurations to deploy and manage Private PowerShell Gallery

Notifications You must be signed in to change notification settings

cmcknz77/PSPrivateGallery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[Project is in Preview mode]

Deploy and Manage a Private PowerShell Gallery

Prerequisites:

Steps

  • Clone this project locally

  • Deploy Gallery DSC Resources $env:PSModulePath

    • Copy ~\Modules folder contents to $env:ProgramFiles\WindowsPowerShell\Modules
  • Generate Credential files - ~\Configuration\GalleryAdminCredFile.clixml, ~\Configuration\GalleryUserCredFile.clixml

    • Get-Credential –Credential GalleryUser | Export-Clixml .\GalleryUserCredFile.clixml
    • Get-Credential –Credential GalleryAdmin | Export-Clixml .\GalleryAdminCredFile.clixml
  • Update Configuration Data for your needs

    • ~\Configuration\PSPrivateGalleryEnvironment.psd1
    • ~\Configuration\PSPrivateGalleryPublishEnvironment.psd1
  • Deploy the Gallery

    • ~\Configuration\PSPrivateGallery.ps1
  • Populate the local instance of the Gallery with specified PowerShell modules

    • ~\Configuration\PSPrivateGalleryPublish.ps1
  • Register the Private PSGallery as an internal PowerShell repository, using Register-PSRepository.

    • Register-PSRepository –Name PSPrivateGallery –SourceLocation “http://localhost:8080/api/v2” –InstallationPolicy Trusted –PackageManagementProvider NuGet
  • Add inbound firewall rule permitting access to the gallery

    • New-NetFirewallRule -Name PSGallery -DisplayName "PSGallery" -Description "Allow access to the PSGallery" -Protocol TCP -RemoteAddress Any -LocalPort 8080 -Action Allow -enabled True
  • Discovery, Installation and Inventory of module using the internal/private PowerShell repository

    • Find-Module –Name PSScriptAnalyzer
    • Install-Module –Name PSScriptAnalyzer
    • Get-Module –Name PSScriptAnalyzer

About

[PREVIEW ONLY] DSC Resources and Configurations to deploy and manage Private PowerShell Gallery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 60.8%
  • C# 18.8%
  • CSS 14.5%
  • JavaScript 2.4%
  • Classic ASP 1.9%
  • HTML 1.6%