Bart Opiola
asked on
Why is Set-Clutter import CSV erroring out?
PS Import-CSV –Path E:\PowerShellScripts\CSVTe mplates\Te mplate-Clu tterFalse. csv| ForEach-Object { Set-Clutter -UserPrincipalName $_.UserPrincipalName -Enable $_.Enable }
Cannot process argument transformation on parameter 'Enable'. Cannot convert value "System.String" to type "System.Nullable`1[System. Boolean]". Boolean parameters accept only Boolean values and numbers, such as
$True, $False, 1 or 0.
+ CategoryInfo : InvalidData: (:) [Set-Clutter], ParameterBindin...mationEx ception
+ FullyQualifiedErrorId : ParameterArgumentTransform ationError ,Set-Clutt er
+ PSComputerName : outlook.office365.com
Cannot process argument transformation on parameter 'Enable'. Cannot convert value "System.String" to type "System.Nullable`1[System.
$True, $False, 1 or 0.
+ CategoryInfo : InvalidData: (:) [Set-Clutter], ParameterBindin...mationEx
+ FullyQualifiedErrorId : ParameterArgumentTransform
+ PSComputerName : outlook.office365.com
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This works better - thanks!
ASKER