diff --git a/PostInstall/PostInstall.ps1 b/PostInstall/PostInstall.ps1 index 0c89281..1bd5eca 100644 --- a/PostInstall/PostInstall.ps1 +++ b/PostInstall/PostInstall.ps1 @@ -60,7 +60,7 @@ function cloudprovider { $paperspace = $( Try { - (Invoke-WebRequest -uri http://metadata.paperspace.com/meta-data/machine -TimeoutSec 5) + (Invoke-WebRequest -uri http://169.254.169.254/meta-data/machine -TimeoutSec 5) } catch { } @@ -800,7 +800,7 @@ Function Server2019Controller { (New-Object System.Net.WebClient).DownloadFile("http://www.download.windowsupdate.com/msdownload/update/v3-19990518/cabpool/2060_8edb3031ef495d4e4247e51dcb11bef24d2c4da7.cab", "C:\ParsecTemp\Drivers\Xbox360_64Eng.cab") if((Test-Path -Path C:\ParsecTemp\Drivers\Xbox360_64Eng) -eq $true) {} Else {New-Item -Path C:\ParsecTemp\Drivers\Xbox360_64Eng -ItemType directory | Out-Null} cmd.exe /c "C:\Windows\System32\expand.exe C:\ParsecTemp\Drivers\Xbox360_64Eng.cab -F:* C:\ParsecTemp\Drivers\Xbox360_64Eng" | Out-Null - cmd.exe /c '"C:\Program Files\Parsec\vigem\10\x64\devcon.exe" dp_add "C:\ParsecTemp\Drivers\Xbox360_64Eng\xusb21.inf"' | Out-Null + cmd.exe /c '"C:\Program Files\Parsec\vdd\devcon.exe" dp_add "C:\ParsecTemp\Drivers\Xbox360_64Eng\xusb21.inf"' | Out-Null } } @@ -840,14 +840,14 @@ function Install-Gaming-Apps { #Disable Devices function disable-devices { ProgressWriter -Status "Disabling Microsoft Basic Display Adapter, Generic Non PNP Monitor and other devices" -PercentComplete $PercentComplete - Start-Process -FilePath "C:\Program Files\Parsec\vigem\10\x64\devcon.exe" -ArgumentList '/r disable "HDAUDIO\FUNC_01&VEN_10DE&DEV_0083&SUBSYS_10DE11A3*"' + Start-Process -FilePath "C:\Program Files\Parsec\vdd\devcon.exe" -ArgumentList '/r disable "HDAUDIO\FUNC_01&VEN_10DE&DEV_0083&SUBSYS_10DE11A3*"' Get-PnpDevice | where {$_.friendlyname -like "Generic Non-PNP Monitor" -and $_.status -eq "OK"} | Disable-PnpDevice -confirm:$false Get-PnpDevice | where {$_.friendlyname -like "Microsoft Basic Display Adapter" -and $_.status -eq "OK"} | Disable-PnpDevice -confirm:$false Get-PnpDevice | where {$_.friendlyname -like "Google Graphics Array (GGA)" -and $_.status -eq "OK"} | Disable-PnpDevice -confirm:$false Get-PnpDevice | where {$_.friendlyname -like "Microsoft Hyper-V Video" -and $_.status -eq "OK"} | Disable-PnpDevice -confirm:$false - Start-Process -FilePath "C:\Program Files\Parsec\vigem\10\x64\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1013&DEV_00B8*"' - Start-Process -FilePath "C:\Program Files\Parsec\vigem\10\x64\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1D0F&DEV_1111*"' - Start-Process -FilePath "C:\Program Files\Parsec\vigem\10\x64\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1AE0&DEV_A002*"' + Start-Process -FilePath "C:\Program Files\Parsec\vdd\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1013&DEV_00B8*"' + Start-Process -FilePath "C:\Program Files\Parsec\vdd\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1D0F&DEV_1111*"' + Start-Process -FilePath "C:\Program Files\Parsec\vdd\devcon.exe" -ArgumentList '/r disable "PCI\VEN_1AE0&DEV_A002*"' } #Cleanup @@ -963,7 +963,7 @@ foreach ($func in $ScripttaskList) { & $func $PercentComplete } -StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU +#StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU Start-ScheduledTask -TaskName "Setup Team Machine" ProgressWriter -status "Done" -percentcomplete 100 Write-Host "1. Open Parsec and sign in (Team machines should have automatically signed in if userdata was correct)" -ForegroundColor black -BackgroundColor Green @@ -973,5 +973,3 @@ Write-Host "You may want to change your Windows password to something simpler if Write-host "DONE!" -ForegroundColor black -BackgroundColor Green if ($DontPromptPasswordUpdateGPU) {} Else {pause} - - diff --git a/PreInstall/TeamMachineSetup.ps1 b/PreInstall/TeamMachineSetup.ps1 index 6bb335b..e8c61eb 100644 --- a/PreInstall/TeamMachineSetup.ps1 +++ b/PreInstall/TeamMachineSetup.ps1 @@ -36,7 +36,7 @@ function fetchUserData { catch { } Try { - (Invoke-WebRequest -uri http://metadata.paperspace.com/meta-data/machine -TimeoutSec 5) + (Invoke-WebRequest -uri http://169.254.169.254/meta-data/machine -TimeoutSec 5) $stream = "bytes" } catch { diff --git a/README.md b/README.md index b6dc461..7a42df3 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Do not select "Turn on Display Device" when setting up the instance, this will c ### START HERE! Copy this code into Powershell (you may need to press enter at the end): ``` [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" -$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip" +$ScriptWebArchive = "https://github.com/kaktus42/Parsec-Cloud-Preparation-Tool/archive/master.zip" $LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool" (New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip") Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force @@ -123,7 +123,7 @@ Q. I want to run this script automatically without user interraction. A. It's possible to do so but you will need to figure out how to install the GPU Driver on your own. The below code will do everything but install the GPU Driver. ``` [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" -$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip" +$ScriptWebArchive = "https://github.com/kaktus42/Parsec-Cloud-Preparation-Tool/archive/master.zip" $LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool" (New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip") Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force