Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

PS script to change desktop background color for all local users doesn't work

$
0
0

hi friends

I am using the following PS script so that any new user which I create in my system (win2008R2 or windows 7 or 8 or...), his desktop background be set as solid color type & its color be red

 

 

 

$mypath="Registry::\HKEY_users\.DEFAULT\control panel\desktop"

new-ItemProperty

 

 

 

-path$mypath-namewallpaper-PropertyTypestring-Value""-Force

 

$mypath="Registry::\HKEY_users\.DEFAULT\Control Panel\Colors"

 

 

 

new-ItemProperty-path$mypath-namebackground-PropertyTypestring-Value"255 0 0"-Force

 

 

 

 

but this (line 3 & 4) don't work & any new user I create & login & logoff multiple time, all their desktop is default blue color.

but the same code works when I apply it in HKCU path.

I really need this to use in my training center with lots of students.

any help please?

thanks inadvanced


Viewing all articles
Browse latest Browse all 6937