Forum Discussion
AB21805
Jul 10, 2023Bronze Contributor
Unable to change screensaver active to 0 via powershell - intune
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 -...
- Jul 14, 2023I added the script to my tenant and deployed it to my user, and the value was changed to 0. I changed it to your value (320), changed the script (Changed the log file name), and uploaded it again to Intune. The script ran on my client, and the value is back to 0. It just works... Not sure what is happening to your machine... Do you have a Configuration Profile which sets the ScreenSaver time-out? You have to exclude the group that you use for this script on that Configuration Profile
AB21805
Bronze Contributor
Hi,
Would I run this as user?
Would I run this as user?
Jul 13, 2023
Yes, it's HKCU (Current User)
- AB21805Jul 13, 2023Bronze ContributorThis still doesnt work, any ideas?
- Jul 13, 2023Please elaborate. Are the values there after deploying the script? Using Win32 or the Scripts pane?
- AB21805Jul 13, 2023Bronze Contributor
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 changeI did get a response here : https://learn.microsoft.com/en-us/answers/questions/1327706/unable-to-change-screensaver-active-to-0-via-power which did indicate I needed to change HKCU to HKU but that didnt work / failed on deployment.