From 6cc5147eec3e46e45cebf23c37bc51354de719ba Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Mon, 4 Sep 2023 09:34:11 -0700 Subject: [PATCH] Update Script.ps1 --- Script.ps1 | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Script.ps1 b/Script.ps1 index 66fa1ba..cf702d5 100644 --- a/Script.ps1 +++ b/Script.ps1 @@ -29,16 +29,3 @@ powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c # Set display to turn black after 2 hours powercfg -change -monitor-timeout-ac 120 - -$url = 'https://plexamp.plex.tv/plexamp.plex.tv/desktop/' - -$latestVersion = Invoke-WebRequest -Uri $url | Select-String -Pattern 'Plexamp Setup [0-9\.]+\.exe' | - ForEach-Object { - $_.Matches.Value.Split(' ')[-1].Trim('.exe') - } | Sort-Object -Descending | Select-Object -First 1 - -$downloadUrl = $url + "Plexamp%20Setup%20$latestVersion.exe" -$outputPath = "$env:USERPROFILE\Downloads\PlexampSetup.exe" - -Invoke-WebRequest -Uri $downloadUrl -OutFile $outputPath -Start-Process -FilePath $outputPath -Wait