Library of custom Windows Policies

The library provides custom Windows Policies, including XML configurations for enabling Personalization CSP on Windows Pro, and instructions for setting background images and lock screens, while emphasizing the need for thorough testing and compatibility considerations.

1 min read
ℹ️
Keep in mind that when writing an XML to apply a CSP Policy to a device, you should omit the first few (and last lines) of the XML file and start (and end) with either <Replace> or <Add> (respectively </Replace> and </Add>)
  1. Allow Personalization CSP on Windows Pro
  2. Set background image and lock screen

Allow Personalization CSP on Windows Pro

<Replace>
  <!-- Allows Personalization CSPs to be deployed on non-Enterprise versions of Windows.
       Setting this value to true triggers the action to configure a device as education environment. 
       Thorough testing is crucial to ensure it does not disrupt workflows or create compatibility issues. -->
  <Item>
    <Meta>
      <Format xmlns="syncml:metinf">bool</Format>
    </Meta>
    <Target>
      <LocURI>./Vendor/MSFT/SharedPC/SetEduPolicies</LocURI>
    </Target>
    <Data>true</Data>
  </Item>
</Replace>

Set background image and lock screen

ℹ️
Personalization CSP is supported in Windows Enterprise and Education Editions. It works in Windows Professional only when SetEduPolicies in SharedPC CSP is set. See “Allow Personalization CSP on Windows Pro”.
<Replace>
  <CmdID>1</CmdID>
  <Item>
    <Target>
      <LocURI>
        ./Vendor/MSFT/Personalization/LockScreenImageUrl
      </LocURI>
    </Target>
    <Meta>
      <Format xmlns="syncml:metinf">chr</Format>
      <Type>text/plain</Type>
    </Meta>
    <Data> … your URL here … </Data>
  </Item>
</Replace>
<Replace>
  <CmdID>2</CmdID>
  <Item>
    <Target>
      <LocURI>
        ./Vendor/MSFT/Personalization/DesktopImageUrl
      </LocURI>
    </Target>
    <Meta>
      <Format xmlns="syncml:metinf">chr</Format>
      <Type>text/plain</Type>
    </Meta>
    <Data> … your URL here … </Data>
  </Item>
</Replace>

Did this answer your question?