Closed Tan-DE closed 2 years ago
Wrong: $CreateUsers = [bool]$env:CreateUsers Correct: $CreateUsers = [System.Convert]::ToBoolean($env:CreateUsers) Internal Test: $test ="false" $res1 = [bool]$test $test1 << $true
The same applies to all Boolean parameters: $CreateDevices = [bool]$env:CreateDevices $CreateMobileDevices = [bool]$env:CreateMobileDevices $CreateInOverview = [bool] $env:CreateInOverview etc.
Whoops I was sure I tested that worked! Thanks for the heads up!
The same applies to all Boolean parameters: $CreateDevices = [bool]$env:CreateDevices $CreateMobileDevices = [bool]$env:CreateMobileDevices $CreateInOverview = [bool] $env:CreateInOverview etc.