3.9 KiB
title, description, ms.date, ms.topic
title | description | ms.date | ms.topic |
---|---|---|---|
Create an Shell Launcher configuration file | Learn how to create an XML file to configure a device with Shell Launcher. | 02/12/2024 | how-to |
Create an Shell Launcher configuration file
Full XML example
<?xml version="1.0" encoding="utf-8"?>
<ShellLauncherConfiguration
xmlns="http://schemas.microsoft.com/ShellLauncher/2018/Configuration"
xmlns:rs5="http://schemas.microsoft.com/ShellLauncher/2019/Configuration">
<Profiles>
<DefaultProfile>
<Shell Shell="%SystemRoot%\explorer.exe"/>
</DefaultProfile>
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
<Shell Shell="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe --kiosk https://maps.heathrow.com --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" rs5:AppType="Desktop" rs5:AllAppsFullScreen="true">
<ReturnCodeActions>
<ReturnCodeAction ReturnCode="0" Action="RestartShell"/>
<ReturnCodeAction ReturnCode="-1" Action="RestartDevice"/>
<ReturnCodeAction ReturnCode="255" Action="ShutdownDevice"/>
</ReturnCodeActions>
<DefaultAction Action="RestartShell"/>
</Shell>
</Profile>
</Profiles>
<Configs>
<Config>
<AutoLogonAccount/>
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"/>
</Config>
</Configs>
</ShellLauncherConfiguration>
:::row::: :::column span="1"::: Scenario :::column-end::: :::column span="3"::: Sample Xml :::column-end::: :::row-end::: :::row::: :::column span="1"::: Block everything :::column-end::: :::column span="3"::: Either don't use the node or leave it empty
```xml
<rs5:FileExplorerNamespaceRestrictions>
</rs5:FileExplorerNamespaceRestrictions>
```
:::column-end:::
:::row-end:::
:::row:::
:::column span="1":::
Only allow downloads
:::column-end:::
:::column span="3":::
xml <rs5:FileExplorerNamespaceRestrictions> <rs5:AllowedNamespace Name="Downloads"/> </rs5:FileExplorerNamespaceRestrictions>
:::column-end:::
:::row-end:::
:::row:::
:::column span="1":::
Only allow removable drives
:::column-end:::
:::column span="3":::
xml <rs5:FileExplorerNamespaceRestrictions> <v3:AllowRemovableDrives /> </rs5:FileExplorerNamespaceRestrictions>
:::column-end:::
:::row-end:::
:::row:::
:::column span="1":::
Allow both Downloads, and removable drives
:::column-end:::
:::column span="3":::
xml <rs5:FileExplorerNamespaceRestrictions> <rs5:AllowedNamespace Name="Downloads"/> <v3:AllowRemovableDrives/> </rs5:FileExplorerNamespaceRestrictions>
:::column-end:::
:::row-end:::
:::row:::
:::column span="1":::
No restrictions, all locations are allowed
:::column-end:::
:::column span="3":::
xml <rs5:FileExplorerNamespaceRestrictions> <v3:NoRestriction /> </rs5:FileExplorerNamespaceRestrictions>
:::column-end:::
:::row-end:::