mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-21 21:33:38 +00:00
add taskbar to MDM example
This commit is contained in:
@ -53,58 +53,73 @@ Two features enable Start layout control:
|
|||||||
## <a href="" id="bkmk-domaingpodeployment"></a>Create a policy for your customized Start layout
|
## <a href="" id="bkmk-domaingpodeployment"></a>Create a policy for your customized Start layout
|
||||||
|
|
||||||
|
|
||||||
This example uses Microsoft Intune to configure an MDM policy that applies a customized Start layout. See the documentation for your MDM solution for help in applying the policy.
|
This example uses Microsoft Intune to configure an MDM policy that applies a customized Start and taskbar layout. See the documentation for your MDM solution for help in applying the policy.
|
||||||
|
|
||||||
1. In the Start layout file created when you ran **Export-StartLayout**, replace markup characters with escape characters, and save the file. (You can replace the characters manually or use an online tool.)
|
1. In your customized Start and taskbar layout XML file, replace markup characters with escape characters, and save the file. (You can replace the characters manually or use an online tool.)
|
||||||
|
|
||||||
Example of a layout file produced by Export-StartLayout:
|
Example of a layout file:
|
||||||
|
|
||||||
<span codelanguage="XML"></span>
|
```xml
|
||||||
<table>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<colgroup>
|
<LayoutModificationTemplate
|
||||||
<col width="100%" />
|
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
|
||||||
</colgroup>
|
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
|
||||||
<thead>
|
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
|
||||||
<tr class="header">
|
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
|
||||||
<th align="left">XML</th>
|
Version="1">
|
||||||
</tr>
|
<LayoutOptions StartTileGroupCellWidth="6" StartTileGroupsColumnCount="1" />
|
||||||
</thead>
|
<DefaultLayoutOverride>
|
||||||
<tbody>
|
<StartLayoutCollection>
|
||||||
<tr class="odd">
|
<defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
|
||||||
<td align="left"><pre><code><LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
|
<start:Group Name="Life at a glance" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
|
||||||
<DefaultLayoutOverride>
|
<start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
|
||||||
<StartLayoutCollection>
|
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI" />
|
||||||
<defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
|
<start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
|
||||||
<start:Group Name="Life at a glance" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
|
</start:Group>
|
||||||
<start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
|
</defaultlayout:StartLayout>
|
||||||
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI" />
|
</StartLayoutCollection>
|
||||||
<start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
|
</DefaultLayoutOverride>
|
||||||
</start:Group>
|
<CustomTaskbarLayoutCollection>
|
||||||
</defaultlayout:StartLayout>
|
<defaultlayout:TaskbarLayout>
|
||||||
</StartLayoutCollection>
|
<taskbar:TaskbarPinList>
|
||||||
</DefaultLayoutOverride>
|
<taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
|
||||||
</LayoutModificationTemplate></code></pre></td>
|
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
|
||||||
</tr>
|
</taskbar:TaskbarPinList>
|
||||||
</tbody>
|
</defaultlayout:TaskbarLayout>
|
||||||
</table>
|
</CustomTaskbarLayoutCollection>
|
||||||
|
</LayoutModificationTemplate>
|
||||||
Example of the same layout file with escape characters replacing the markup characters:
|
```
|
||||||
|
Example of the same layout file with escape characters replacing the markup characters:
|
||||||
```
|
|
||||||
&lt;wdcml:p xmlns:wdcml=&quot;http://microsoft.com/wdcml&quot;&gt;Example of a layout file produced by Export-StartLayout:&lt;/wdcml:p&gt;&lt;wdcml:snippet xmlns:wdcml=&quot;http://microsoft.com/wdcml&quot;&gt;&lt;![CDATA[&lt;LayoutModificationTemplate Version=&quot;1&quot; xmlns=&quot;http://schemas.microsoft.com/Start/2014/LayoutModification&quot;&gt;
|
```
|
||||||
&lt;DefaultLayoutOverride&gt;
|
<LayoutModificationTemplate
|
||||||
&lt;StartLayoutCollection&gt;
|
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
|
||||||
&lt;defaultlayout:StartLayout GroupCellWidth=&quot;6&quot; xmlns:defaultlayout=&quot;http://schemas.microsoft.com/Start/2014/FullDefaultLayout&quot;&gt;
|
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
|
||||||
&lt;start:Group Name=&quot;Life at a glance&quot; xmlns:start=&quot;http://schemas.microsoft.com/Start/2014/StartLayout&quot;&gt;
|
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
|
||||||
&lt;start:Tile Size=&quot;2x2&quot; Column=&quot;0&quot; Row=&quot;0&quot; AppUserModelID=&quot;Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge&quot; /&gt;
|
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
|
||||||
&lt;start:Tile Size=&quot;2x2&quot; Column=&quot;4&quot; Row=&quot;0&quot; AppUserModelID=&quot;Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI&quot; /&gt;
|
Version="1">
|
||||||
&lt;start:Tile Size=&quot;2x2&quot; Column=&quot;2&quot; Row=&quot;0&quot; AppUserModelID=&quot;Microsoft.BingWeather_8wekyb3d8bbwe!App&quot; /&gt;
|
<LayoutOptions StartTileGroupCellWidth="6" StartTileGroupsColumnCount="1" />
|
||||||
&lt;/start:Group&gt;
|
<DefaultLayoutOverride>
|
||||||
&lt;/defaultlayout:StartLayout&gt;
|
<StartLayoutCollection>
|
||||||
&lt;/StartLayoutCollection&gt;
|
<defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
|
||||||
&lt;/DefaultLayoutOverride&gt;
|
<start:Group Name="Life at a glance" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
|
||||||
&lt;/LayoutModificationTemplate&gt;]]&gt;&lt;/wdcml:snippet&gt;
|
<start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
|
||||||
```
|
<start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI" />
|
||||||
|
<start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
|
||||||
|
</start:Group>
|
||||||
|
</defaultlayout:StartLayout>
|
||||||
|
</StartLayoutCollection>
|
||||||
|
</DefaultLayoutOverride>
|
||||||
|
<CustomTaskbarLayoutCollection>
|
||||||
|
<defaultlayout:TaskbarLayout>
|
||||||
|
<taskbar:TaskbarPinList>
|
||||||
|
<taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
|
||||||
|
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
|
||||||
|
</taskbar:TaskbarPinList>
|
||||||
|
</defaultlayout:TaskbarLayout>
|
||||||
|
</CustomTaskbarLayoutCollection>
|
||||||
|
</LayoutModificationTemplate>
|
||||||
|
```
|
||||||
|
|
||||||
2. In the Microsoft Intune administration console, click **Policy** > **Add Policy**.
|
2. In the Microsoft Intune administration console, click **Policy** > **Add Policy**.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user