Questions tagged [powershellget]

PowerShellGet is the Package Manager Manager for PowerShell modules.

PowerShellGet is the package manager for PowerShell items. There is a PSModule package provider that exposes PowerShellGet functionality through PackageManagement (aka OneGet). Because of this, you can either run Install-Module or Install-Package -Provider PSModule to install a module from the PowerShell Gallery. Certain PowerShellGet functionality, including Update-Module and Publish-Module, cannot be accessed through PackageManagement commands.

In summary, PowerShellGet is solely focused on having a premium package management experience for PowerShell content. PackageManagement is focused on exposing all package management experiences through one general set of tools.

PowerShellGet can install modules from PowerShell Gallery, NuGet feed and any other source supported by OneGet.

32 questions
17
votes
2 answers

How to install/update a powershell module from a local folder - set up an internal module repository

I need to install a PowerShell module (i.e. sqlserver) on one production box, however, the production server does not have any internet connection. An alternative way I am using is to use save-module to save module files onto a shared folder and…
jyao
  • 1,550
  • 3
  • 19
  • 26
17
votes
5 answers

Install-PackageProvider is not recognized as the name of a cmdlet, function, script file, or operable program

I'm following Get Started with the PowerShell Gallery which states that the PowerShellGet module exists in Windows 10 (which I am using - build 14721). To confirm, I am running PowerShell v5: >$PSVersionTable Name …
jamiet
  • 10,501
  • 14
  • 80
  • 159
17
votes
1 answer

Create pure powershell Nuget module for PowerShellGet

What I want I want to publish number of PowerShell scripts as Nuget package to be used on build systems. I want to use PowerShellGet to do installation work for me and version management. I don't want those scripts to be part of any Visual Studio…
Anton
  • 10,890
  • 8
  • 45
  • 54
14
votes
3 answers

How to install module into Custom directory?

Currently we are installing some modules using the command below, but it installs modules in C:\Program Files\WindowsPowerShell\Modules. Install-Module -Name XXX -RequiredVersion XXX -Repository XXX -Scope AllUsers Our requirement is to install…
mit
  • 1,763
  • 4
  • 16
  • 27
12
votes
1 answer

PowerShell Package Management - Repository vs Provider vs Source

I am trying to understand package management in PowerShell, and I am getting an incomplete picture. When I look at the objects PSRepository, PackageProvider, and PackageSource, they all seem to have the following relationships: A PSRepository can…
srbrills
  • 1,451
  • 2
  • 13
  • 33
12
votes
6 answers

Invalid Web Uri error on Register-PSRepository

After Windows November update (PackageManagement and PowerShellGet modules of 1.0.0.1 version) I can't register HTTPS NuGet servers as PSRepository anymore: Register-PSRepository -Name test -SourceLocation https://some-nuget/api/v2 It returns…
Anton
  • 10,890
  • 8
  • 45
  • 54
8
votes
2 answers

PowerShell v5 - How to install modules to a computer having no internet connection?

I've a machine (v3, internet, no admin access) which I used to download WMF 5.0 and set up another machine(v5, no internet, admin access). Now, I want to use some modules from PowerShellGet on the machine running v5 but no internet connection. I…
zerocool18
  • 523
  • 1
  • 4
  • 11
7
votes
4 answers

PowerShell Install Module command not failing but not installing module

I am trying to install the PnP online commands for SharePoint onto my PowerShell however the following command doesn't seem to work; Install-Module -name SharePointPnPPowerShellOnline -scope CurrentUser The command seems to run through fine with no…
Ross.Muszynski
  • 101
  • 1
  • 6
6
votes
1 answer

Register-PsRepository : The property 'Name' cannot be found on this object

I'm getting below error when trying to run Register-PsRepository I have tried: re-installing WMF 5, PowerShellGet and PackageManagement modules updating said modules debugging PowerShellGet module I can see that PsBoundParameters does pass the Name…
Tomek
  • 641
  • 1
  • 6
  • 16
6
votes
2 answers

Powershell not importing functions from module

I'm trying to setup a NuGet Feed here, and that worked ok. I installed a module from my feed via Install-Module -Name MyCmdlets -Repository $RepoName -Scope CurrentUser -Force Import-Module -Name MyCmdlets However when I run Get-Module, I get no…
4
votes
2 answers

Why can Find-Package not find a package by name on my local package source

I have a local package source to mess around with some things. I created a brain-dead package called CoolUtils, adding it using nuget add. You can find it using nuget: PS> nuget list -source E:\nuget-repo-test-01\ CoolUtils 2.0.20171024.1 PS> nuget…
SirPentor
  • 1,994
  • 14
  • 24
3
votes
1 answer

Write to Profile File After Installing PowerShell Module with PowerShellGet

I have a custom PowerShell module with two cmdlets. I have it successfully, but manually, deployed on my machine. However, I deployed it by placing the binary file and module manifest in a location, and then registering the module. I also had to…
ProfK
  • 49,207
  • 121
  • 399
  • 775
3
votes
1 answer

How do I declare a script as prerelease in the powershellgallery?

I want to be able to update my script using update-script -allowprerelease. I'm not sure how to mark the script as prerelease before using Publish-Script to publish it. How do I do it? I tried $Params = @{ PrivateData = @{ PSData = @{ …
Bobby Dore
  • 499
  • 5
  • 13
3
votes
0 answers

PowerShell Register-PSRepository Set Priority

I have two PowerShell Repositories installed. It isn't possible to uninstall the default package feed (https://www.powershellgallery.com/api/v2/) with the Unregister-PSRepository command, and I don't want to get my packages over the default package…
Thomas Gassmann
  • 737
  • 1
  • 13
  • 27
3
votes
1 answer

Using PowerShellGet on VSTS hosted agents

I am using Visual Studio Team Services (VSTS) hosted build agents in my build process. My builds mostly rely on the 'PowerShell' step that calls a script that I have in git. From within this script, I would like to manage PowerShell modules using…
1
2 3