You can use authentication flags in vmrun commands to provide information required to access a system.
For example, you can use an authentication flag to specify the local host type because vmrun commands apply to both VMware Workstation and VMware Fusion host types. You can also use authentication flags to provide the credentials required to access encrypted virtual machines or a guest operating system.
Authentication flags must appear before the command and command parameters.
The vmrun command supports the following authentication flags.
The -T flag is optional. When you run vmrun commands with Fusion, fusion is the default. Use the -T flag for Fusion as follows.
vmrun -T fusion
Encrypted Virtual Machines
Encrypted virtual machines require a password for most operations.
Guest operations require authentication by the guest operating system.
Use the following flags to specify the user name and password of the user in the guest operating system.