Jul 10 2023 07:22 AM
Hi all,
I have used this locally on a device which works :
$RegistryPath = "HKCU:\Control Panel\Desktop"
$RegistryName = "screensaveactive"
$NewValue = "0"
Set-ItemProperty -Path $RegistryPath -Name $RegistryName -Value $NewValue
However when I run this via intune even tho the script succeeds it doesnt change to 0?
Where am I going wrong? How do I get it to work?
Jul 12 2023 12:18 PM
Jul 13 2023 02:35 AM
Jul 13 2023 04:10 AM
Jul 13 2023 07:10 AM
Jul 13 2023 07:13 AM
Jul 13 2023 07:57 AM - edited Jul 13 2023 07:59 AM
The value doesnt change from 1 to 0 for savescreenactive
I use script to do it not win32 - even though the script succeeds the value doesnt change
I did get a response here : https://learn.microsoft.com/en-us/answers/questions/1327706/unable-to-change-screensaver-active-to-0... which did indicate I needed to change HKCU to HKU but that didnt work / failed on deployment.
Jul 13 2023 08:14 AM
Jul 13 2023 12:50 PM
Jul 13 2023 12:59 PM
Jul 13 2023 01:16 PM
Jul 13 2023 01:18 PM
Jul 14 2023 12:03 AM
Jul 14 2023 12:04 AM
Jul 14 2023 12:08 AM
Ahhh my bad I apologies! Ill deploy to the user also can you check if this is correct:
Jul 14 2023 12:09 AM
Jul 14 2023 12:15 AM
Jul 14 2023 01:13 AM
Jul 14 2023 02:26 AM
SolutionJul 14 2023 02:26 AM
Solution