Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:08
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 kaskavalci/212bbd7abcf68a961856 to your computer and use it in GitHub Desktop.
Save kaskavalci/212bbd7abcf68a961856 to your computer and use it in GitHub Desktop.
@echo off
SET TEMPFILE="%TEMP%\%RANDOM%.TXT"
echo SELECT VDISK FILE="C:\full\path\to\license.vhd">%TEMPFILE%
echo ATTACH VDISK>>%TEMPFILE%
DISKPART /s %TEMPFILE%
del %TEMPFILE%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment