Open cspotcode opened 1 month ago
Sadly, I still find myself forced to use Windows PowerShell occasionally. Today it was because Office interop fails on PowerShell Core.
This logic can be tweaked to install modules into the WindowsPowerShell directory instead of PowerShell
WindowsPowerShell
PowerShell
https://github.com/dfinke/InstallModuleFromGitHub/blob/8430eacfb15c84db34915a626d24884e7f187658/InstallModuleFromGitHub.psm1#L70-L77
As a workaround, I used -DestinationPath $HOME\Documents\WindowsPowerShell\Modules
-DestinationPath $HOME\Documents\WindowsPowerShell\Modules
Hopefully this helps anyone searching in the future.
Sadly, I still find myself forced to use Windows PowerShell occasionally. Today it was because Office interop fails on PowerShell Core.
This logic can be tweaked to install modules into the
WindowsPowerShell
directory instead ofPowerShell
https://github.com/dfinke/InstallModuleFromGitHub/blob/8430eacfb15c84db34915a626d24884e7f187658/InstallModuleFromGitHub.psm1#L70-L77
As a workaround, I used
-DestinationPath $HOME\Documents\WindowsPowerShell\Modules
Hopefully this helps anyone searching in the future.