Following errors:
PS H:\> \\sccm\Source\Etc\powershell\vsphere-connect.ps1
Connect-VIServer : The 'Connect-VIServer' command was found in the module 'VMware.VimAutomation.Core',
but the module could not be loaded. For more information, run 'Import-Module VMware.VimAutomation.Core'.
At \\sccm\Source\Etc\powershell\vsphere-connect.ps1:1 char:1
+ Connect-VIServer -Server vcenter67 -User administrator@vsphere.local ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Connect-VIServer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS H:\> import-module vmware.vimautomation.core
import-module : Unable to find type [VMware.VimAutomation.Sdk.Interop.V1.CoreServiceFactory].
At line:1 char:1
+ import-module vmware.vimautomation.core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (VMware.VimAutom...eServiceFactory:TypeName) [Import-Modu
le], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
---------------
I've tried a couple things, but topics I've found aren't completely current, so hoping there's an all in one solution/script that will remove modules, cleanup, reinstall, unblock etc etc. Or if this is a known issue what the specific solution is.