Skip to content

Commit 682e58a

Browse files
committed
Add Au3 and PS1 scripts
Add uncompiled AutoIt script Add ready to run PowerShell script
1 parent 7110273 commit 682e58a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

FixMyRiftS.au3

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#RequireAdmin
2+
3+
Main()
4+
5+
Func Main()
6+
7+
#Region ; Extract Dependancies
8+
If Not FileExists(@TempDir & ".\FMRS\FixMyRiftS.ps1") Then
9+
DirCreate(@TempDir & "\FMRS")
10+
FileInstall(".\FixMyRiftS.ps1", @TempDir & "\FMRS\FixMyRiftS.ps1")
11+
EndIf
12+
#EndRegion
13+
14+
#Region ;Toggle Device
15+
ShellExecute("powershell " & @TempDir & "\FMRS\FixMyRiftS.ps1")
16+
#EndRegion
17+
18+
EndFunc
19+
20+
21+
; USB\VID_2833&PID_2051&REV_0108
22+
; USB\VID_2833&PID_2052&REV_0108

FixMyRiftS.ps1

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Requires -RunAsAdministrator
2+
Write-Host "RCMaehl's Rift S Fix Script v0.1"
3+
Write-Host ""
4+
Write-Host "Disabling Rift S USB Hub (Errors here are normal)"
5+
Get-PnpDevice -FriendlyName "Rift S USB Hub" | Disable-PnpDevice -confirm:$false
6+
Write-Host "Enabling Rift S USB Hub"
7+
Get-PnpDevice -FriendlyName "Rift S USB Hub" | Enable-PnpDevice -confirm:$false
8+
Write-Host "Your Rift S should now be working!"

0 commit comments

Comments
 (0)