NikCharlebois / VisualStudioDSC

DSC Module to install Visual Studio 2013+
0 stars 1 forks source link

Update VSInstall to install with elevated permissions #2

Closed llowevad closed 5 years ago

llowevad commented 5 years ago

Was running into the following error in my installation: "This command cannot be run due to the error: The requested operation requires elevation."

I removed the -credential option in line 97 and replaced it with -Verb runAs and it runs as the setup account (which I specified in my DSC config) without error in an "Run As Administrator" window.