Hi all. I have a worklet that runs the following code in the remediation section. It doesn’t seem to be working. It works just fine if I run it in a powershell window (that runs as admin).
What gives? I’m trying to disable auto-startup of Starleaf.
$registryPath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder"
$registryProperty = "StarLeaf.lnk"
$enableValue = ( byteb]](0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00))
$disableValue = ( byteb]](0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00))
Set-ItemProperty -Path $registryPath -Name $registryProperty -Value $disableValue -Type Binary