Both scripts are on my github along with an uninstall script that removes the reg values and key. The Win32 app creation is the same, so its personal preference which script you use. I personally prefer using the local file and packaging everything as a Win32 app. The other uses a local image file and packages it in the Win32 app. One downloads your desired images from the internet using a specified URL. I have two scripts that accomplish the same end result. You can deploy as a powershell script, but then you don’t get any detection rules ☹. Now that we have a working script, we can try deploying lock screen and desktop images through Intune. After testing the script, and rebooting the PC, the lockscreen and desktop images were set. So, my first test was to write a script that created the PersonalizationCSP registry key and the values for background and lockscreen images. These values are all under HKLM\Software\Microsoft\Windows\CurrentVersion\PersonalizationCSP.īack on my Windows 10 Pro VM, that key doesn’t exist. It didn’t take long to see the key and values that were created. Shortly after the policy was applied, I compared the registry from before and after. This tool allows you to compare a previous version of the registry to the current version and see the differences. So, I wiped the test device and before I applied the profile again, I grabbed a snapshot of the registry using the Nirsoft tool Registr圜hangesView ( Registr圜hangesView – Compare snapshots of Windows Registry ()). I spent a while trying to find the reg keys this policy created/edited in the intune logs and through the generated diagnostic logs, but had no luck. You can see in the screenshots below, my Pro machines give “not applicable”, but the EDU VM is successful. I created a test VM running Windows 10 EDU, and applied the device restriction profile against the test PC. So, we need to identify which keys and/or values are being added to control these settings. So, we have to figure out another way to do this.Īll roads usually lead back to the registry for these types of things. If you try applying this profile to Windows 10 Pro, you will receive a “not applicable” error for the installation status of the profile. Easy, right? Well, this is limited to Ent/Edu versions. The easiest way to set the desktop background image with Intune is using a device restriction profile and pointing to a URL with the image you want to use. I’ve seen a lot of questions on reddit about this over the last couple weeks and ran into this exact question several months ago.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |