Cyberdrain Storage Sense script error

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: (:slight_smile: , MethodInvocationException
error> + FullyQualifiedErrorId : FormatException
error>

Yea everything looks ok from a first glance. Paging Dr. Kelvin… @kelvin

Is this the monitoring or enablement script? both look good, and run fine here. Are you using PowerShell 5+, Windows 10 Pro or higher? :slight_smile:

I think I got it figured out. I used this blog: Storage Sense on Windows 10 configured with Intune | Aaron Parker.

I added his code to test if the registry folders exist and create them if not. It seems to be working on most computers now.