What would be the best way to copy files from remote powershell session? I thought Copy-Item cmdlet with parameter -FromSession would be the best choice. But then to make it work in the session configuration file I need to set LanguageMode to FullLanguage, add a few more cmdlets to VisibleCmdlets and my biggest concern is adding FileSystem to VisibleProviders. How can I ensure that Copy-Item cmdlet can access that folder only? Or maybe I’m going the wrong path?
I think what you want is shown in Examples 9, 10 and 11 in the Copy-Item documentation. If you need more specific help, please show your code (at least the relevant portion of it).