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
2
votes
3 answers

PowershellGet missing from Windows 10 ver 1709

I was attempting to install the lastest VMWare PowerCLI, and I get an error: Install-Module : The term 'Install-Module' is not recognized as the name of a cmdlet, function... Some digging shows that I don't have PowershellGet installed, and all of…
StormRider01
  • 335
  • 5
  • 19
2
votes
1 answer

Update-Module duplicates module instead of updating

I'm using PowerShellGet to install my own PowerShell module from my local Nuget feed (packed and published as here). I'm installing it once like this: Install-Module MyModule -Scope CurrentUser And then I'm updating it like this: Update-Module…
Anton
  • 10,890
  • 8
  • 45
  • 54
1
vote
1 answer

Failed to publish PowerShell module to the PSGallery

I've been working on my first PS module, and wanted to share the beginning of my work with the community on the PSGallery. When running the Publish-Module, under PowerShell 7, I get the following error: Publish-Module -Path…
Douda
  • 121
  • 8
1
vote
1 answer

How to publish .nupkg to Powershell Gallery?

Solution Credit to mklement0 Here's what I ended up doing to publish my bin\MyModule.0.1.0.nupkg module to PSGallery: Rename bin\MyModule.0.1.0.nupkg to bin\MyModule.0.1.0.zip Extract bin\MyModule.0.1.0.zip to bin\MyModule\ (the name of the…
Brian
  • 149
  • 1
  • 7
1
vote
1 answer

Issues with PowerShell Repositories on Azure DevOps Agents

Sorry for the very long post, but I am really stuck and hope someone can help. I've been back and forth so many times and I am hitting many issues with everything that has to do with PowerShell repositories and Azure DevOps agents. The end goal is…
1
vote
1 answer

Publish-Module fails with NuGet.Build.Tasks.Pack.targets(198,5) error : Index was outside the bounds of the array

I've upgraded to dotnet sdk version 3.1 and am trying to publish my powershell module. I am using powershell 5.1. I run the command: Publish-Module -Path "C:\sources\myModules\InstallationUtils\" -NuGetApiKey "xxxxxxx" -Repository…
Dai Bok
  • 3,451
  • 2
  • 53
  • 70
1
vote
1 answer

Powershell Find-Package fails with unable to resolve package source

I need to download packages from local artifactory. On most servers it works. On all my servers I have registered my package source like so: Register-PackageSource -name artifactory -source -credential $cred This shows as registered package…
Tomek
  • 641
  • 1
  • 6
  • 16
1
vote
1 answer

Publish-Module "Get-PackageSource Unable to find repository 'ArtifactoryDev'" error. Though ArtifactoryDev exists

Unable to publish an update to an existing Powershell module to our Artifact Store. In my script I register my repositories and Package Sources: Register-PSRepository -Name ArtifactoryDev -SourceLocation $NuGetDevUrl -PublishLocation $NuGetDevUrl…
Explicitsoul
  • 149
  • 2
  • 10
1
vote
1 answer

The 'Save-Module' command was found in the module 'PowerShellGet', but the module could not be loaded

When I execute the command at power shell Save-Module -Name ACMESharp -Path It prompts the error as below: The 'Save-Module' command was found in the module 'PowerShellGet', but the module could not be loaded. Then I try to execute …
kyorilys
  • 822
  • 13
  • 27
1
vote
1 answer

How can I create a Package Management/PowerShellGet/OneGet package from an .exe or .msi?

I can fine a whole bunch of information on how to install packages using Package Management (nee PowerShellGet (nee OneGet)), but I can find nearly zero information on creating those packages. I did find this which describes how to use the…
Mark
  • 11,257
  • 11
  • 61
  • 97
0
votes
0 answers

Error Running Connect-ExchangeOnline Command in C# using ExchangeOnlineManagement PowerShell Module

I'm attempting to connect to Exchange Online using Exchange Online PowerShell V2 in C# using the Connect-ExchangeOnline command from the ExchangeOnlineManagement module. My code looks like this: public class EMShell : IDisposable { …
GreenHat
  • 1
  • 1
0
votes
1 answer

Error when running Install-Module -Name PackageManagement,PowerShellGet -AllowClobber -Force -SkipPublisherCheck

I am trying to run the below command but I am getting an error message: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -Name PackageManagement,PowerShellGet -AllowClobber -Force…
0
votes
1 answer

Install Active Directory without needing RSAT

Installing Active Directory in Servers without RSAT I am able to install Active Directory module in some servers but not in others.... [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module -AllowClobber…
Patrick Burwell
  • 129
  • 1
  • 12
0
votes
1 answer

Get-PSRepository, powershell warning: "Unable to find module repositories" while trying to install Docker in WindowsServer2016

I want to install Docker and so I tried the below command which gave an error PS C:\Windows\system32> Install-Module -Name DockerMsftProvider PackageManagement\Install-Package : No match was found for the specified search criteria and module name…
Ash
  • 41
  • 1
  • 1
  • 10
0
votes
1 answer

Can a PowerShell module be installed using PowershellGet from a local dir or a zip served by HTTP server?

A Powershell module can be installed using the old community-provided PsGet module from a local directory or a zip from a remote HTTP server: PSGet\Install-Module -ModulePath "C:\path\to\source\of\MyModule" PsGet\Install-Module -ModuleUrl…
Mikey
  • 91
  • 1
  • 7