Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SkipVersionCheck Parameter to Invoke-Maester to Support Air-Gapped Environments #552

Open
ryandunton opened this issue Nov 27, 2024 · 0 comments

Comments

@ryandunton
Copy link

Issue Description

The Invoke-Maester function currently performs a version check every time it is run. This is causing errors in air gapped environments so to provide more flexibility, it would be beneficial to have a SkipVersionCheck parameter that allows users to bypass this check.

Proposed Solution

Implement a SkipVersionCheck parameter in the Invoke-Maester function. When this parameter is set, the version check should be skipped.

Example Implementation

Add the SkipVersionCheck parameter to the Invoke-Maester function.

# Skip the version check.
# If set, the version check will not be performed.
[switch] $SkipVersionCheck

Wrap Get-IsNewMaesterVersionAvailable | Out-Null in an if statement.

if (-not $SkipVersionCheck) {
    Get-IsNewMaesterVersionAvailable | Out-Null
}

Please let me know if there are any additional details you would like to include.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant