I have a simple script that just copies a csv from one server to my universal server. When the script setting is set to default (currently set to 5.1) it works. If I change that to 7.0 and run the script it gives this error
[error] The 'Out-PSUPipeline' command was found in the module 'Universal', but the module could not be loaded due to the following error: [Assembly with same name is already loaded]
For more information, run 'Import-Module Universal'.
We had the same issue in 3.8 and found we needed the Universal module version to be the same as the PSU Server. We were using Install-PSUServer and Update-PSUServer to upgrade and noted that we need to update Universal first going forward.
I’d recommend getting rid of the 1.5.7 and 2.10.2 versions.
It’s a bit weird that you have 2.10.2 in the Program Files folder. Is there another folder in there or is there only the 2.x version? I would expect the v4 module to be in that folder.
It only has the 2.10.2 folder in program files. That may have been the very first install I did of universal. Been doing in place upgrades with the MSI since then.
The program files install locations are weird
I may need to just delete the 1.5.7 and 2.10.2 versions from the file system. If I try to remove it via remove-module it says they were install outside of powershell and can’t be removed through uninstall-module
Any idea’s about the error message I am still getting though?
My hunch is that it’s loading one of the older DLLs for some reason. I’d start by removing (or renaming) the older modules’ folders to see if it still happens.