How to replace the Desktop background image with a solid color, using PowerShell and registry?












0















I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and the default image is annoyingly too bright and not solid. I have tried all sorts of registry settings and also renaming and replacing the image, but it's always the same.



A few things I tried:



# Take (user) owbership of file:
takeown /F C:WindowsWebWallpaperWindowsimg0.jpg
# C:WindowsWebWallpaperWindowsimg0.jpg

$key = 'HKCU:Control PanelColors' #
$key = 'HKCU:Control PanelDesktop' #
$key = 'HKCU:Control PanelDesktopColors' #

# Doesn't seem to effect the Desktop...only console
Set-ItemProperty -Path $key -Name 'Window' -Value '1 36 86'
# reset to default
Set-ItemProperty -Path $key -Name 'Window' -Value '255 255 255'


How can I use PowerShell to set the correct registry item(s) to remove the background image and get a solid color?










share|improve this question


















  • 1





    $key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

    – JosefZ
    Dec 20 '18 at 15:49











  • Thanks @JosefZ I must have found the solution while you were typing.

    – not2qubit
    Dec 20 '18 at 16:12
















0















I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and the default image is annoyingly too bright and not solid. I have tried all sorts of registry settings and also renaming and replacing the image, but it's always the same.



A few things I tried:



# Take (user) owbership of file:
takeown /F C:WindowsWebWallpaperWindowsimg0.jpg
# C:WindowsWebWallpaperWindowsimg0.jpg

$key = 'HKCU:Control PanelColors' #
$key = 'HKCU:Control PanelDesktop' #
$key = 'HKCU:Control PanelDesktopColors' #

# Doesn't seem to effect the Desktop...only console
Set-ItemProperty -Path $key -Name 'Window' -Value '1 36 86'
# reset to default
Set-ItemProperty -Path $key -Name 'Window' -Value '255 255 255'


How can I use PowerShell to set the correct registry item(s) to remove the background image and get a solid color?










share|improve this question


















  • 1





    $key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

    – JosefZ
    Dec 20 '18 at 15:49











  • Thanks @JosefZ I must have found the solution while you were typing.

    – not2qubit
    Dec 20 '18 at 16:12














0












0








0








I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and the default image is annoyingly too bright and not solid. I have tried all sorts of registry settings and also renaming and replacing the image, but it's always the same.



A few things I tried:



# Take (user) owbership of file:
takeown /F C:WindowsWebWallpaperWindowsimg0.jpg
# C:WindowsWebWallpaperWindowsimg0.jpg

$key = 'HKCU:Control PanelColors' #
$key = 'HKCU:Control PanelDesktop' #
$key = 'HKCU:Control PanelDesktopColors' #

# Doesn't seem to effect the Desktop...only console
Set-ItemProperty -Path $key -Name 'Window' -Value '1 36 86'
# reset to default
Set-ItemProperty -Path $key -Name 'Window' -Value '255 255 255'


How can I use PowerShell to set the correct registry item(s) to remove the background image and get a solid color?










share|improve this question














I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and the default image is annoyingly too bright and not solid. I have tried all sorts of registry settings and also renaming and replacing the image, but it's always the same.



A few things I tried:



# Take (user) owbership of file:
takeown /F C:WindowsWebWallpaperWindowsimg0.jpg
# C:WindowsWebWallpaperWindowsimg0.jpg

$key = 'HKCU:Control PanelColors' #
$key = 'HKCU:Control PanelDesktop' #
$key = 'HKCU:Control PanelDesktopColors' #

# Doesn't seem to effect the Desktop...only console
Set-ItemProperty -Path $key -Name 'Window' -Value '1 36 86'
# reset to default
Set-ItemProperty -Path $key -Name 'Window' -Value '255 255 255'


How can I use PowerShell to set the correct registry item(s) to remove the background image and get a solid color?







windows-10 powershell windows-registry desktop windows-insider






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 20 '18 at 14:33









not2qubitnot2qubit

8351122




8351122








  • 1





    $key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

    – JosefZ
    Dec 20 '18 at 15:49











  • Thanks @JosefZ I must have found the solution while you were typing.

    – not2qubit
    Dec 20 '18 at 16:12














  • 1





    $key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

    – JosefZ
    Dec 20 '18 at 15:49











  • Thanks @JosefZ I must have found the solution while you were typing.

    – not2qubit
    Dec 20 '18 at 16:12








1




1





$key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

– JosefZ
Dec 20 '18 at 15:49





$key = "HKCU:Control PanelDesktop";Set-ItemProperty -Name WallPaper -Path $key -Value ''

– JosefZ
Dec 20 '18 at 15:49













Thanks @JosefZ I must have found the solution while you were typing.

– not2qubit
Dec 20 '18 at 16:12





Thanks @JosefZ I must have found the solution while you were typing.

– not2qubit
Dec 20 '18 at 16:12










1 Answer
1






active

oldest

votes


















0














Indeed I found two methods. One using CMD-R to run some windows magic, and another by setting the PATH value to null with ('').



However, apparently there is another registry item containing the path in hex encoded form, in HKCU:Control PanelDesktopTranscodedImageCache, that you can see by the rudimentary hex conversion.





# Set the wallpaper PATH to ''
$key = 'HKCU:Control PanelDesktop'
Set-ItemProperty -Path $key -Name 'WallPaper' -Value ''

# Re-start windows Explorer:
Stop-Process -ProcessName explorer

# Using `CMD+R` and run :
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.PersonalizationpageWallpaper

# Getting the "Transcoded" PATH:
$TIC=(Get-ItemProperty 'HKCU:Control PanelDesktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache
[System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\])+','$2'

#C:WindowsWebWallpaperWindows_img0.jpg


Also related to this answer.




  • You need to restart windows explorer.exe (use Sysinternal's Process Explorer or PS with: Stop-Process -ProcessName explorer) in order for registry changes to take effect.






share|improve this answer





















  • 1





    Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

    – JosefZ
    Dec 20 '18 at 17:26











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386302%2fhow-to-replace-the-desktop-background-image-with-a-solid-color-using-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Indeed I found two methods. One using CMD-R to run some windows magic, and another by setting the PATH value to null with ('').



However, apparently there is another registry item containing the path in hex encoded form, in HKCU:Control PanelDesktopTranscodedImageCache, that you can see by the rudimentary hex conversion.





# Set the wallpaper PATH to ''
$key = 'HKCU:Control PanelDesktop'
Set-ItemProperty -Path $key -Name 'WallPaper' -Value ''

# Re-start windows Explorer:
Stop-Process -ProcessName explorer

# Using `CMD+R` and run :
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.PersonalizationpageWallpaper

# Getting the "Transcoded" PATH:
$TIC=(Get-ItemProperty 'HKCU:Control PanelDesktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache
[System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\])+','$2'

#C:WindowsWebWallpaperWindows_img0.jpg


Also related to this answer.




  • You need to restart windows explorer.exe (use Sysinternal's Process Explorer or PS with: Stop-Process -ProcessName explorer) in order for registry changes to take effect.






share|improve this answer





















  • 1





    Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

    – JosefZ
    Dec 20 '18 at 17:26
















0














Indeed I found two methods. One using CMD-R to run some windows magic, and another by setting the PATH value to null with ('').



However, apparently there is another registry item containing the path in hex encoded form, in HKCU:Control PanelDesktopTranscodedImageCache, that you can see by the rudimentary hex conversion.





# Set the wallpaper PATH to ''
$key = 'HKCU:Control PanelDesktop'
Set-ItemProperty -Path $key -Name 'WallPaper' -Value ''

# Re-start windows Explorer:
Stop-Process -ProcessName explorer

# Using `CMD+R` and run :
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.PersonalizationpageWallpaper

# Getting the "Transcoded" PATH:
$TIC=(Get-ItemProperty 'HKCU:Control PanelDesktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache
[System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\])+','$2'

#C:WindowsWebWallpaperWindows_img0.jpg


Also related to this answer.




  • You need to restart windows explorer.exe (use Sysinternal's Process Explorer or PS with: Stop-Process -ProcessName explorer) in order for registry changes to take effect.






share|improve this answer





















  • 1





    Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

    – JosefZ
    Dec 20 '18 at 17:26














0












0








0







Indeed I found two methods. One using CMD-R to run some windows magic, and another by setting the PATH value to null with ('').



However, apparently there is another registry item containing the path in hex encoded form, in HKCU:Control PanelDesktopTranscodedImageCache, that you can see by the rudimentary hex conversion.





# Set the wallpaper PATH to ''
$key = 'HKCU:Control PanelDesktop'
Set-ItemProperty -Path $key -Name 'WallPaper' -Value ''

# Re-start windows Explorer:
Stop-Process -ProcessName explorer

# Using `CMD+R` and run :
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.PersonalizationpageWallpaper

# Getting the "Transcoded" PATH:
$TIC=(Get-ItemProperty 'HKCU:Control PanelDesktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache
[System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\])+','$2'

#C:WindowsWebWallpaperWindows_img0.jpg


Also related to this answer.




  • You need to restart windows explorer.exe (use Sysinternal's Process Explorer or PS with: Stop-Process -ProcessName explorer) in order for registry changes to take effect.






share|improve this answer















Indeed I found two methods. One using CMD-R to run some windows magic, and another by setting the PATH value to null with ('').



However, apparently there is another registry item containing the path in hex encoded form, in HKCU:Control PanelDesktopTranscodedImageCache, that you can see by the rudimentary hex conversion.





# Set the wallpaper PATH to ''
$key = 'HKCU:Control PanelDesktop'
Set-ItemProperty -Path $key -Name 'WallPaper' -Value ''

# Re-start windows Explorer:
Stop-Process -ProcessName explorer

# Using `CMD+R` and run :
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.PersonalizationpageWallpaper

# Getting the "Transcoded" PATH:
$TIC=(Get-ItemProperty 'HKCU:Control PanelDesktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache
[System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\])+','$2'

#C:WindowsWebWallpaperWindows_img0.jpg


Also related to this answer.




  • You need to restart windows explorer.exe (use Sysinternal's Process Explorer or PS with: Stop-Process -ProcessName explorer) in order for registry changes to take effect.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 20 '18 at 20:20

























answered Dec 20 '18 at 16:11









not2qubitnot2qubit

8351122




8351122








  • 1





    Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

    – JosefZ
    Dec 20 '18 at 17:26














  • 1





    Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

    – JosefZ
    Dec 20 '18 at 17:26








1




1





Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

– JosefZ
Dec 20 '18 at 17:26





Good point! In this case, you needn’t to restart explorer.exe. Right-click the desktop + Refresh should suffice

– JosefZ
Dec 20 '18 at 17:26


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386302%2fhow-to-replace-the-desktop-background-image-with-a-solid-color-using-powershell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa