I’m attempting to use the Cyberdrain Storage Sense script. I haven’t made any changes, but I’m getting the following error message. I looked at all the boolean conversions, and I don’t see any issues with the code. Have any of you seen this and been able to fix it?
error> Exception calling “ToBoolean” with “1” argument(s): “String was not recognized as a valid Boolean.”
error> At C:\ProgramData\Syncro\bin\6cc8484b-0ce9-48cb-9776-7becd130386e.ps1:12 char:1
error> + $WantedSettings = [PSCustomObject]@{
error> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error> + CategoryInfo : NotSpecified: ( , MethodInvocationException
error> + FullyQualifiedErrorId : FormatException
error>