2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-17 03:26:02 +00:00

ViGEmScript: Force Admin privi.

This commit is contained in:
Peter Repukat 2017-12-28 22:34:02 +01:00
parent 5e712ed2db
commit 4489b9d3d7

View File

@ -1,3 +1,14 @@
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
$arguments = "& '" + $myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb runAs -ArgumentList $arguments
Break
Return
}
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted -confirm:$false
Install-Module ViGEmManagementModule -Repository nuget.vigem.org