Created
November 28, 2022 14:15
-
-
Save wdormann/fc2e630513aeca29f89dd92dfff68932 to your computer and use it in GitHub Desktop.
Suspend running VMs, for use in Windows shutdown script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(& "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" list | Select-String -Pattern ".vmx") | %{&"C:\Program Files (x86)\VMware\VMware Workstation\vmrun" suspend $_} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment