In the folder, you will see three different folders full of high-quality Windows wallpapers. Write-Host "Creating registry path $($RegKeyPath). To find the bundled lock screen wallpapers, copy the below path, paste it in the blank field and press Enter. New-ItemProperty -Path $RegKeyPath -Name $DesktopUrl -Value $DesktopImageValue -PropertyType STRING -Force | Out-Null New-ItemProperty -Path $RegKeyPath -Name $DesktopPath -Value $DesktopImageValue -PropertyType STRING -Force | Out-Null New-ItemProperty -Path $RegKeyPath -Name $DesktopStatus -Value $Statusvalue -PropertyType DWORD -Force | Out-Null New-Item -Path $RegKeyPath -Force | Out-Null Write-Host "Creating registry path $($RegKeyPath)." $wc.DownloadFile($url, $DesktopImageValue) New-Item -Path $directory -ItemType directory If ((Test-Path -Path $directory) -eq $false) $DesktopImageValue = "C:\MDM\wallpaper.jpg" $RegKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" This script worked perfectly for him (running as 64 bits and as system (Run this script using the logged on credentials -> no) Some time ago I received the same question. Or is there any other way of achieving this? Please bear in mind I'm using Windows 10 Pro - so the usual Intune background settings don't work with. So the lock screen and desktop background don't get set.Äo Powershell scripts run in order - and sequentially? That way I could set two scripts, one to download and one to set the registry keys. The script runs, downloads the files successfully but then can't set the registry keys (as my standard user doesn't have permission to alter registry keys).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |