How to set a VM to shutdown on logout and restart operations

The procedure for setting a VM to shutdown on logout and restart operations is as follows:
Note:
When creating a linked clone or full memory template, you are advised to set the mode of VM logout and restart operations to shutdown to prevent security risks, such as the leakage of user information.
You do not need to do this when creating a full copy or QuickPrep template.

1. Create a policy.bat file in C:\.
Note:
File suffixes are hidden by default on VMs. When you create this file, you need to change its suffix.
2. Open the policy.bat file and add the shutdown -f -s -t 0 command. Save and exit the file.
3. Perform the required configuration. For details, see steps 1 to 5 at https://technet.microsoft.com/en-us//library/cc753583.aspx. In step 5, you only need to perform the first operation to add the policy.bat file. Ignore the second operation.

Scroll to top