Asked by:
How to change screensaver using powershell? Code should take image file and set screensaver.

Question
-
Dear Colleagues,
I am creating script to change the screensaver of system using powershell. Facing issue that how to/what to code for screensaver change. I don't have idea which parameter/method/class which can be useful to select image and set as screensaver. This script will run in local environment.
Select image file and set it as screensaver.
No issue while setting below values. (Using registry change it works.)
ScreenSaverActive
ScreenSaverSecure
ScreenSaverTimeout- Moved by Bill_Stewart Wednesday, September 4, 2019 6:20 PM This is not "scripts on demand"
Tuesday, March 5, 2019 5:01 PM
All replies
-
Please read this first: This forum is for scripting questions rather than script requests.
Also find scripts here: PowerShell Gallery or here: TechNet Gallery - resources for IT professionals.
Learn PowerShell: Microsoft Virtual Academy - Getting Started with Microsoft PowerShell.
Script requests: Microsoft Technet Script Center - Requests.
Live long and prosper!
(79,108,97,102|%{[char]$_})-join''
Tuesday, March 5, 2019 5:57 PM -
Dear Colleagues,
Any cmdlet or object available to change the screensaver?
Get-WMIObject -class Win32_Desktop | gmAbove code does not help at all. Properties are Read Only.
I can find registry as below.
"HKLM:\Software\Policies\Microsoft\Windows\Control Panel\Desktop"
ScreenSaverSecure
ScreenSaverTimeout
But not able to find the path where i can set image path in registry.
- Merged by Bill_Stewart Friday, March 8, 2019 5:06 AM Duplicate
Wednesday, March 6, 2019 6:35 AM -
Please do not re-post the same question again. The answer will stay the same.
There are literally thousands of examples out there how to change registry settings - search for it please. There is no built in cmdlet to change the Windows screen saver.
Live long and prosper!
(79,108,97,102|%{[char]$_})-join''
- Proposed as answer by I.T Delinquent Wednesday, March 6, 2019 9:09 AM
Wednesday, March 6, 2019 7:09 AM -
As noted in your other thread, the forum is not for free scripts. You can search for scripts or go to the gallery where there are scripts that can do what you ask.
\_(ツ)_/
Wednesday, March 6, 2019 11:43 AM