VMX grayed out and VM can’t be added to inventory.

You are browsing a VMware ESXi datastore and attempting to “Add to inventory”, but the VMX is grayed out.

There is a problem in your VMX file. The VMX files are automatically scanned on a directory listing and if there are problems in the file you won’t be given the option to add it to inventory.

This usually occurs when you copy and paste a code snippet from someone using a Mac (ugh).