psedit icon indicating copy to clipboard operation
psedit copied to clipboard

Does not work on nano-server docker image

Open artisticcheese opened this issue 3 years ago • 2 comments

Getting following error during PSEdit installation docker run -it mcr.microsoft.com/powershell:7.3-nanoserver-1809

PowerShell 7.3.0
PS C:\> install-module psedit

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
Install-Package: The module 'psedit' cannot be installed or updated because the authenticode signature of the file 'psedit.psd1' is not valid.
PS C:\>

artisticcheese avatar Nov 25 '22 13:11 artisticcheese

We might need to code sign the module. What's your execution policy set to?

adamdriscoll avatar Nov 25 '22 15:11 adamdriscoll

This is default nano-server container. It comes with RemoteSigned out of the box. mcr.microsoft.com/powershell:7.3-nanoserver-1809

artisticcheese avatar Nov 25 '22 15:11 artisticcheese