Vagrant fails to detect elevated CMD on Windows
Overview
Running vagrant up --provider=virtualbox --provision
from an elevated PS or CMD gives me the error "You must run the GitLab Vagrant from an elevated command prompt"
Vagrantfile uses reg query HKU\\S-1-5-19 2>&1
to see if it's elevated, but running that command manually in CMD gives "ERROR: Invalid key name". By removing one of the backslashes, to make it reg query HKU\S-1-5-19 2>&1
, the script runs fine.
Environment
- Operating System: Windows 10 Pro 1909
- GDK version: acd0cf4a