-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-Certificate cmdlet already exists during install #159
Comments
The ACMESharp command is Get-ACMECertificate. You can see in the ACMESharp.psd1 module a default command prefix of 'ACME' applied to all commands. Maybe you could try running the command using Install-Module -Name ACMESharp -Prefix ACME This would be to make sure the prefix used really is 'ACME'. |
Thanks for the response. -Prefix is not an option on this version of PS (5.1) I'm thinking the install is somehow checking for the non-prefixed version, even though it will install with the prefix. |
Was it dropped from 5.1? The argument has been part of PS since version 3.0 and is shown in the version 5.0 documentation. Get-Certificate is a valid command in all versions of PS so it seems this would be a command we'd all see clobbered if it were a general problem. There was a news story last week that Microsoft 'broke' Powershell in Windows 10 with the last update. Maybe this is contribution to your issue? I believe this is scheduled to be addressed in the next update. |
That's part of the Import-Module used to load the module into the current session. I get the error during the Install-Module which essentially downloads the bit. I will wait for the next update and try again |
I tried it with the -AllowClobber option and the install looked to be successful. The original Get-Certificate still works and Get-ACMECertificate appears to run as well. My guess is the installer is looking for the non-aliased name even though it will use a prefix. |
This is also true on Windows Server 2016 (RTM, as seen on Amazon AMI Windows_Server-2016-English-Full-Base-2016.10.18 / ami-7ac78809) AllowClobber works, but doesn't feel like the right answer? |
For some reason the "clobber checking" that's in the Install-Module or Import-Module doesn't look to see if there is a I would venture to say that this is a bug or oversight on the part of these cmdlets. |
any update? problem still exists |
Apparently a known problem with PowerShellGet. |
See this article for details about this issue. |
Trying to run the following shell commands
Install-Module -Name ACMESharp
Install-Module -Name ACMESharp -Scope CurrentUser
on a Windows 10 1607 install and getting following error:
PackageManagement\Install-Package : A command with name 'Get-Certificate' is already available on this system. This
module 'ACMESharp' may override the existing commands. If you still want to install this module 'ACMESharp', use
-AllowClobber parameter.
anyone else seeing this? any workarounds without clobbering the one already installed? I verified ACMESharp is not already installed.
Thanks,
Mike
The text was updated successfully, but these errors were encountered: