Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mgttt/c222922643cdf6c257ee7f02b9a79479 to your computer and use it in GitHub Desktop.
Save mgttt/c222922643cdf6c257ee7f02b9a79479 to your computer and use it in GitHub Desktop.
@echo off
@set copy_to_startup=copy /Y %0 "%USERPROFILE%\..\Default\Start Menu\Programs\Startup\"
echo %copy_to_startup%
%copy_to_startup%
echo taskkill vmtoolsd
taskkill /F /IM vmtoolsd.exe
echo runas vmtoolsd
runas /user:administrator /savecred "C:\Program Files\VMware\VMware Tools\vmtoolsd.exe -n vmusr"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment