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

Parameters Validation #36

Open
MarcoFrancisco opened this issue Mar 11, 2023 · 0 comments
Open

Parameters Validation #36

MarcoFrancisco opened this issue Mar 11, 2023 · 0 comments

Comments

@MarcoFrancisco
Copy link
Collaborator

If one of the following parameter is blank, user should be forced to input values. No $exchangeOnPremEWS makes the script fail or have multiple errors.

Parameters (Function ShowParameters, line 184):

    Write-Host  -ForegroundColor White " Log File Path:"
    Write-Host -foregroundcolor Green "  $PSScriptRoot\$Logfile"
    Write-Host  -ForegroundColor White " Office 365 Domain:"
    Write-Host -foregroundcolor Green "  $exchangeOnlineDomain"
    Write-Host  -ForegroundColor White " AD root Domain"
    Write-Host -foregroundcolor Green "  $exchangeOnPremLocalDomain"
    Write-Host -foregroundcolor White " Exchange On Premises Domain:  "
    Write-Host -foregroundcolor Green "  $exchangeOnPremDomain"
    Write-Host -ForegroundColor White " Exchange On Premises External EWS url:"
    Write-Host -foregroundcolor Green "  $exchangeOnPremEWS"
    Write-Host -ForegroundColor White " On Premises Hybrid Mailbox:"
    Write-Host -foregroundcolor Green "  $useronprem"
    Write-Host -ForegroundColor White " Exchange Online Mailbox:"
    Write-Host -foregroundcolor Green "  $userOnline" 
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