{"id":23763663,"url":"https://github.com/tomashubelbauer/powershell-wallpaper","last_synced_at":"2025-10-08T20:23:39.914Z","repository":{"id":107986245,"uuid":"225448847","full_name":"TomasHubelbauer/powershell-wallpaper","owner":"TomasHubelbauer","description":"Controlling the desktop wallpaper using PowerShell","archived":false,"fork":false,"pushed_at":"2022-04-14T21:08:44.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T02:44:37.509Z","etag":null,"topics":["powershell"],"latest_commit_sha":null,"homepage":"","language":"Markdown","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomasHubelbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-02T19:07:48.000Z","updated_at":"2021-04-04T15:12:39.000Z","dependencies_parsed_at":"2023-05-15T11:15:37.137Z","dependency_job_id":null,"html_url":"https://github.com/TomasHubelbauer/powershell-wallpaper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TomasHubelbauer/powershell-wallpaper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fpowershell-wallpaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fpowershell-wallpaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fpowershell-wallpaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fpowershell-wallpaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomasHubelbauer","download_url":"https://codeload.github.com/TomasHubelbauer/powershell-wallpaper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fpowershell-wallpaper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000659,"owners_count":26082817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell"],"created_at":"2024-12-31T22:13:14.617Z","updated_at":"2025-10-08T20:23:39.909Z","avatar_url":"https://github.com/TomasHubelbauer.png","language":"Markdown","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Powershell Wallpaper\n\nSet the desktop wallpaper using PowerShell:\n\n```powershell\n# Using PowerShell to write to the  registry\nset-itemproperty -path \"HKCU:Control Panel\\Desktop\" -name WallPaper -value \"%UserProfile%\\Desktop\\wallpaper.jpg\"\n# Using `reg`\nreg add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v WallPaper /t REG_SZ /d \"%UserProfile%\\Desktop\\wallpaper.jpg\" /f\n```\n\nClear the desktop wallpaper using PowerShell:\n\n```powershell\n# Using PowerShell to write to the  registry\nset-itemproperty -path \"HKCU:Control Panel\\Desktop\" -name WallPaper -value \"\"\n# Using `reg`\nreg add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v WallPaper /t REG_SZ /d \"\" /f\n```\n\n## Refreshing\n\nThe registry write will not have an immediate effect on the desktop background.\nIt is necessary to initiate a per user settings reload:\n\n```powershell\nRUNDLL32.EXE USER32.DLL, UpdatePerUserSystemParameters\n```\n\n## Resources\n\nhttps://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfoa\n\n## To-Do\n\n### Hook into an event indicating `UpdatePerUserSystemParameters` completion\n\nThis will ensure the call went through successfully and will enable to hold the script until it does.\n\n### Add working scripts for setting the desktop background color\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fpowershell-wallpaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomashubelbauer%2Fpowershell-wallpaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fpowershell-wallpaper/lists"}