I was receiving the following error when connecting to the system console through the VMware vSphere client
Unable to connect to the MKS: Could not connect to pipe \\.\pipe\vmware-authdpipe within retry period
I found a page knowledge base article Opening a virtual machine console from vSphere Client fails with the error: Unable to contact the MKS (2032016)
It shows that you need to delete a variable called USER and the steps to do so.
I deleted a variable called USERNAME