2017-12-28 21:34:02 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-12-28 21:37:46 +00:00
|
|
|
#Remove multiple just in case...
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
Get-ViGEmBusDevice | Remove-ViGEmBusDevice
|
|
|
|
|
2017-12-28 21:34:02 +00:00
|
|
|
|
2017-12-28 21:30:35 +00:00
|
|
|
Register-PSRepository -Name nuget.vigem.org -SourceLocation https://nuget.vigem.org/ -InstallationPolicy Trusted -confirm:$false
|
|
|
|
|
|
|
|
Install-Module ViGEmManagementModule -Repository nuget.vigem.org
|
|
|
|
|
|
|
|
Install-ViGEmBusDeviceDriver
|
|
|
|
|
|
|
|
Add-ViGEmBusDevice
|