How can I change a property?

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 15 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
thepituti
Posts: 2
Last visit: Mon May 26, 2008 10:47 pm

How can I change a property?

Post by thepituti »

Hello,

How can I change a property from this?

get-wmiobject -class win32_desktop | where-object -filterscript {$_.name -eq "domainuser"}

I want to change the screensaver executable.

Regards.
User avatar
thepituti
Posts: 2
Last visit: Mon May 26, 2008 10:47 pm

How can I change a property?

Post by thepituti »

Hello,

How can I change a property from this?

get-wmiobject -class win32_desktop | where-object -filterscript {$_.name -eq "domainuser"}

I want to change the screensaver executable.

Regards.
User avatar
joel.delatorre
Posts: 83
Last visit: Tue Jan 17, 2017 9:26 am

How can I change a property?

Post by joel.delatorre »

You can't. this is a read only property.ScreenSaverExecutableData type: stringAccess type: Read-onlyName of the current screen saver executable file. Example: "LOGON.SCR"I believe you should still be able to change this via the registry.
This topic is 15 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked