Skip to content

Fix bug when determing if admin mode on Windows

What does this Merge Request do?

This MR fixes a bug reported at #1161 (closed):

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.

Merge Request checklist

  • Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Documentation added/updated, if needed.
  • gdk doctor test added, if needed.

Closes #1161 (closed)

Merge request reports

Loading