timmcmic / DLConversionV2

MIT License
43 stars 9 forks source link

Error in Test-OutboundConnector #131

Closed githubths closed 11 months ago

githubths commented 1 year ago

Script : Test-OutboundConnector.ps1

The Error are Present by the Main Function : Test-PreMigration IF the Error is wanted then the function must have a optional Paramter OverrideCentralizedMailTransportEnabled for checking if the DL can by migrated.

Out-logfile function hase no parameter -isError

Line : 54 out-logfile -string "WARNING" -isError:$true

Please Replace with out-logfile -string "WARNING"

timmcmic commented 1 year ago

I'm not sure what you are asking for here.

Line 54 is valid as far as I can tell. If any connector is found with route enabled the this function should bail.

out-logfile -string "WARNING" -isError:$true

Out-logfile does have a -isError.

From out-logfile

        [Parameter(Mandatory = $false)]
        [boolean]$isError=$FALSE,

Feel free to clarify if i'm not understanding.