We remote into the Veeam server to do our choirs, but since we upgraded to 13.1 we have a problem. We can’t use PowerShell 5 since because of the requirements of Veeam. Remoting into the Veeam server using a PowerShell.7 configuration fails with “ParentContainsErrorRecordException: Exception calling "ImportByDll" with "1" argument(s): "Dependency resolution failed for component C:\Program
Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll with error code -2147450750. Detailed error:
Hostpolicy must be initialized and corehost_main must have been called before calling
corehost_resolve_component_dependencies. “
If I do a $psversiontable in the session it says PSVersion=7.6.3
What I do:
Enter-PSSession -computername veamserver -ConfigurationName “PowerShell.7” -Credential $mycred
import-module Veeam.Backup.PowerShell
