Dans mon script j'essaie de tester pour vrai et faux. Cette syntaxe est-elle incorrecte?powershell exchange: si alors syntaxe d'instruction?
$pdaout = ""
if ($pda.ActiveSyncEnabled.tostring() -like "True") {$pdaout = "TRUE"}
if ($pda.ActiveSyncEnabled.tostring() -like "False") {$pdaout = "-"}
write-host $pdaout