Open KevinBurton opened 2 years ago
How did you install posh-git 1.0.0 for Windows PowerShell? Install-Module
should take care of removing the internet zone identifier so it doesn't show up as a "remote" scirpt.
You can remove the internet zone identifier from these files by running:
Get-ChildItem ~\Documents\WindowsPowerShell\Modules\posh-git\1.0.0 -rec -file | Unblock-File
Install-Module posh-git
On Tue, Jan 18, 2022 at 3:10 PM Keith Hill @.***> wrote:
How did you install posh-git 1.0.0 for Windows PowerShell? Install-Module should take care of removing the internet zone identifier so it doesn't show up as a "remote" scirpt.
You can remove the internet zone identifier from these files by running:
Get-ChildItem ~\Documents\WindowsPowerShell\Modules\posh-git\1.0.0 -rec -file | Unblock-File
— Reply to this email directly, view it on GitHub https://github.com/dahlbyk/posh-git/issues/886#issuecomment-1015836622, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUFM3VMD5GDGFH5GIGAFKLUWXJM7ANCNFSM5MICDFWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Did you try unblocking all of the module files? Install-Module
should have done that but it's not exactly the most bug-free command. FWIW posh-git does work in Windows PowerShell v5 and an execution policy of RemoteSigned
:
I installed posh-git. Now I am having an issue using it. From PowerShell I execute the command 'Import-Module posh-git' and I get the following error
I am not sure how to proceed? Basically posh-git is not digitally signed so this cannot be executed with the execution policy of RemoteSigned?