powercode / CDPath

PowerShell module to make navigating your system a breeze
MIT License
14 stars 2 forks source link

Update code signature #1

Open fsackur opened 3 years ago

fsackur commented 3 years ago

Hi! This module is still useful.

When installing from the gallery, I get a code signing error and the module is not installed:

> Install-Module -Repository PSGallery cdpath

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): a
PackageManagement\Install-Package : The module 'cdpath' cannot be installed or updated because the authenticode
signature of the file 'cdpath.psd1' is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
   Exception
    + FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.P
   ackageManagement.Cmdlets.InstallPackage
Konfekt commented 3 years ago

-SkipPublisherCheck is the provisional solution