![]() New-Item -Path C:\Windows\Customization -ItemType DirectoryĬopy-Item -Path $PSScriptRoot\img0_1920x1200.jpg -Destination 'C:\Windows\Customization' If(!(Test-Path -Path C:\Windows\Customization)) $LockScreenStatus = "LockScreenImageStatus" $RegKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP" 'Starting script HappyAdmin Customization' | Out-File 'c:\windows\logs\HappyAdminCustomizations.log' Powershell -executionpolicy bypass %~dp0install.ps1Īnd install.ps1 runs the script below. The solution is to start the script by a cmd as C:\windows\sysnative\cmd.exe /c “install.cmd”where install.cmd just contains the command Note that you have to run the PowerShell script by using the sysnative parameter, otherwise you won’t find your values in HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP but HKLM:\SOFTWARE\ WOW6432Node\Microsoft\Windows\CurrentVersion\PersonalizationCSP since Intune runs scripts in 32 bit context. This doesn’t work very well and isn’t necessary any more since 1703, but I replace it anyhow to be on the safe side. You may have come across scripts which are based on a replacement of the default background image located in c:\windows\Web\wallpaper\Windows\img0.jpg. This may seem easier, but Microsoft warns that some settings are only available on specific Windows editions, such as Enterprise and that you must provide an internet link to your image. Please note that you can also configure these settings by a Configuration Profile using device restrictions. The script should be deployed as win32 application. The registered owner entry is shown when you run winver.exe. You must provide a 1920×1200 image which will be used as wallpaper, lockscreen or both (default). See the links below if you just want a pre-configuration that allows the user to change settings. The solution below will apply customizations to the clients that are mandatory, which means in particular that the user will not be able to change the wallpaper on his machine.
0 Comments
Leave a Reply. |