Skip to content

Commit

Permalink
Combine PowerShell Functions into 1 script for RMM
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 22, 2024
1 parent 3468180 commit ce42945
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EasyWarrantyCheck_RMM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,11 @@ function Get-WebDriver {
Get-WebDriver
#>
$webdriverurl = "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.109/win64/chromedriver-win64.zip"
# Retrieve JSON content from the URL
$jsonUrl = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json"
$jsonString = Invoke-RestMethod -Uri $jsonUrl
# Find the URL for chromedriver for win64 platform in the stable channel
$webdriverurl = $jsonString.channels.Stable.downloads.chromedriver | Where-Object { $_.platform -eq "win64" } | Select-Object -ExpandProperty url
$WebDrivertemp = "C:\temp"
$WebDriverPath = "C:\temp\chromedriver-win64"
$driverExists = Test-Path (Join-Path $WebDriverPath "chromedriver.exe")
Expand Down

0 comments on commit ce42945

Please sign in to comment.