EvotecIT / Testimo

Testimo is a PowerShell module for running health checks for Active Directory against a bunch of different tests
MIT License
539 stars 58 forks source link

Improvement for Offline Environment #168

Closed DonDom86 closed 1 year ago

DonDom86 commented 2 years ago

Hi,

$GitHubUrl = "https://api.github.com/repos/evotecit/Testimo/releases"

if ($(Test-Connection $GitHubUrl -Quiet -Count 1) -eq $true) { [Array] $GitHubReleases = (Get-GitHubLatestRelease -Url $GitHubUrl)

} else { [Array] $GitHubReleases = [PSCustomObject] @{ PublishDate = "" CreatedDate = "" PreRelease = "" Version = "" Tag = "" Branch = "" Errors = "Unable to connect to the remote server" }

}