PowerCLI New-VM or Set-VM: Could not load file or assembly ‘CryptoSupport.dll’ or one of its dependencies
I was trying to clone some VMs and apply an os config to it without any luck. I kept getting this error about CryptoSupport.dll and google wasnt helping me much.
After much digging I found that the CryptoSupport.dll is 32bit only and my ISE running in x64 wasnt too happy about loading it.
So, load 32 bit powershell.
Error looked something like this:
Could not load file or assembly ‘CryptoSupport.dll’ or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)