PowerShellGet and redirected MyDocs
When using -Scope CurrentUser with the Install-* cmdlets from PowerShellGet it looks at [Environment]::GetFolderPath("MyDocuments") to determine where to install the modules/scripts/etc.
If using Folder Redirection for My Documents, this is likely to be a network path which causes some issues such as performance (kills tab completion), as well as some potential issues with binary modules.
Understand the problem now, which is based on loading the DLL from a redirected share.
Moving to a Survey item to gauge priority.
Thank you -
I noticed this same scenario when using OneDrive folder protection for my "Documents" folder.
When the user docs directory is redirected to a network share UNC name, PowerShell is unusable on the machine until the network is connected and active.
Even when the network is connected and active, speed performance is near unusable.
Sebastian N. commented
Modules with dlls cannot be loaded from redirected profile folders residing on a file share. Let me know if you need the error message (ran into this with the ISESteroids module).
Damien Solodow commented
No specific issues on binaries that I can recall; I just remember some things around security zone issues with executables on shares.
As far as folder redirection, would it be possible to make that a configurable/preference item for PowerShellGet? Profile, snippets, etc. on shared folder not an issue usually, but modules installed there don't seem to be properly detected by update-module from other PCs.