- April 21, 2016 at 7:02 am #38108
Just wondering what the best way would be to acquire modules and DSC resources in an environment where downloading via cmdlets (save-module, etc.) is blocked. I use the gallery at home, but the DoD seems to have this blocked, so it isn't accessible to me at work where I need it most.
I know I can get some things from the Technet Script Center (https://gallery.technet.microsoft.com/scriptcenter), but given the popularity of the PowerShell Gallery, I doubt people will be keeping the script center up to date.April 21, 2016 at 7:07 am #38109
I see the PowerShell team has their resources up on GiHub.April 21, 2016 at 7:14 am #38110
You can set up your own private NuGet server that acts just like the PowerShell Gallery. Most recently, they've set up this repo, though it's in Preview status: https://github.com/PowerShell/PSPrivateGallery . There's an older blog post here as well: https://blogs.msdn.microsoft.com/powershell/2014/05/20/setting-up-an-internal-powershellget-repository/April 21, 2016 at 7:35 am #38113
GitHub isn't the right spot; that's the developer branch of the code, not necessarily the stable release. Dave's right – an internal repo (which will be easy to set up, soon), and you can go out-of-office to acquire content, bring that content in, and load it into your private repo.April 21, 2016 at 8:55 am #38114
Thanks guys, I have played around with the preview of the private gallery. We were looking at using this for sharing some of internal scripts/modules. Was hoping there might be an option that would not require me to get content off site, but it seems like that might be a dead end.April 21, 2016 at 9:44 am #38120
Well, thing is, you guys aren't blocking the cmdlets, you're blocking sites, proabbly via your firewall or proxy. So there might be galleries out there that people have set up, which you're not blocking, but only you'd be able to find out what those are, and they'd likely not include the same modules as the main PSGallery.April 21, 2016 at 11:28 am #38129
Right, web access for all elevated accounts is blocked via proxy. So the cmdlets are a no go, unless the source is internal. Was looking to download certain resources the old school way – via the browser. I can get to PowerShellGallery.com, but there doesn't appear to be a conventional download link, and the script center seems to be nearly a year out of date for most things.
I appreciate your help, but it seems that my only real option (as usual) is to download at home and sneaker-net it over.April 21, 2016 at 11:46 am #38130
What about using a non-elevated account just to do the download, with the destination being some internal repo? I could even see a script, run under non-elev privileges, to "mirror" PSGallery on a weekly basis or whatever.April 21, 2016 at 12:21 pm #38131
If you just want to download the .nupkg file from powershellgallery.com using the browser then the link format is as follows
You can then install it using Install-Package, or upload it to an internal repositoryApril 22, 2016 at 4:59 am #38162
Thanks Henry, that is exactly what I was looking for. That works.
You must be logged in to reply to this topic.