Skip to content

Instantly share code, notes, and snippets.

@LOuroboros
Created November 15, 2021 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LOuroboros/88614d346fdaf2a9725eee0d20144dd5 to your computer and use it in GitHub Desktop.
Save LOuroboros/88614d346fdaf2a9725eee0d20144dd5 to your computer and use it in GitHub Desktop.
Stop VM Services (including WSL)
:: Comment: I use this to shutdown WSL whenever I need to put Windows on a Sleep/Hibernate state.
ECHO Stopping VM Services
sc stop hns
sc stop vmcompute
sc stop lxssmanager
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment