Skip to content
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

Separate out commands that now exist in PowerShell to separate module #15

Open
rkeithhill opened this issue Dec 5, 2016 · 4 comments
Open

Comments

@rkeithhill
Copy link
Contributor

In the past, we've used a special, deprecated module for PSCX commands that have subsequently been implemented directly in PowerShell. Look into doing this again.

@mikemaccana
Copy link
Contributor

mikemaccana commented Aug 13, 2018

Was about to file a bug for my current installation troubles (using PS 6.1 preview 4) but yes, this looks like the cause:

PS C:\Users\mike\Documents> Install-Module Pscx -Scope CurrentUser
PackageManagement\Install-Package : The following commands are already available on this system:'Expand-Archive,Get-Hash,help,prompt,Format-Hex,Get-Help,Get-Uptime'. This module 'Pscx' may override the existing commands. If you still want to install this module 'Pscx', use -AllowClobber parameter.
At C:\program files\powershell\6-preview\Modules\PowerShellGet\1.6.0\PSModule.psm1:2057 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

@mikemaccana
Copy link
Contributor

Is this still ongoing? It's been 3 years.

@maphew
Copy link

maphew commented Nov 11, 2021

Yep, still going on. Current collisions:

The following commands are already available on this system:
'gcb,Expand-Archive,Format-Hex,Get -Hash,help,prompt,Dismount-VHD,Get-ADObject,Get-Clipboard,Get-Help,Mount-VHD,Set-Clipboard'

@rkeithhill
Copy link
Contributor Author

Can you try the 4.0.0 beta?

Install-Module pscx -AllowPrerelease -Force -Scope CurrentUser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants