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:
parent
5e712ed2db
commit
4489b9d3d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user