Update XML formatting in assigned access configuration files

This commit is contained in:
Paolo Matarazzo 2024-03-01 17:36:57 -05:00
parent c55a00bb51
commit 2e0dba2997
10 changed files with 253 additions and 313 deletions

View File

@ -1,32 +1,30 @@
--- ---
author: paolomatarazzo author: paolomatarazzo
ms.author: paoloma ms.author: paoloma
ms.date: 02/05/2024 ms.date: 03/01/2024
ms.topic: include ms.topic: include
--- ---
<!-- example of a restricted user profile with File Explorer restrictions and autologon account --> <!-- example of a restricted user profile with File Explorer restrictions and autologon account -->
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config">
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profiles>
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config"> <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
<Profiles> <!-- Add configuration here -->
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <rs5:FileExplorerNamespaceRestrictions>
<!-- Add configuration here --> <rs5:AllowedNamespace Name="Downloads" />
<rs5:FileExplorerNamespaceRestrictions> <v3:AllowRemovableDrives />
<rs5:AllowedNamespace Name="Downloads"/> </rs5:FileExplorerNamespaceRestrictions>
<v3:AllowRemovableDrives/> <!-- Add configuration here -->
</rs5:FileExplorerNamespaceRestrictions> </Profile>
<!-- Add configuration here --> </Profiles>
</Profile> <Configs>
</Profiles> <Config>
<Configs> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<Config> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> </Config>
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> </Configs>
</Config>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```

View File

@ -8,17 +8,15 @@ ms.topic: include
<!--Global profile--> <!--Global profile-->
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" <Profiles>
xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config"> <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
<Profiles> <!-- Add configuration here -->
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> </Profile>
<!-- Add configuration here --> </Profiles>
</Profile> <Configs>
</Profiles> <v3:GlobalProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
<Configs> </Configs>
<v3:GlobalProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```

View File

@ -1,28 +1,26 @@
--- ---
author: paolomatarazzo author: paolomatarazzo
ms.author: paoloma ms.author: paoloma
ms.date: 02/05/2024 ms.date: 03/01/2024
ms.topic: include ms.topic: include
--- ---
<!-- Microsoft Edge kiosk--> <!-- Microsoft Edge kiosk-->
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config">
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profiles>
xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config"> <Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
<Profiles> <KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" />
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"> <v4:BreakoutSequence Key="Ctrl+A" />
<KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" /> </Profile>
<v4:BreakoutSequence Key="Ctrl+A"/> </Profiles>
</Profile> <Configs>
</Profiles> <Config>
<Configs> <Account>Edge kiosk</Account>
<Config> <DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}" />
<Account>Edge kiosk</Account> </Config>
<DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"/> </Configs>
</Config>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```

View File

@ -10,13 +10,8 @@ ms.topic: include
::: zone pivot="windows-10" ::: zone pivot="windows-10"
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config">
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config"
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config">
<Profiles> <Profiles>
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
<AllAppsList> <AllAppsList>
@ -32,11 +27,10 @@ ms.topic: include
</AllowedApps> </AllowedApps>
</AllAppsList> </AllAppsList>
<rs5:FileExplorerNamespaceRestrictions> <rs5:FileExplorerNamespaceRestrictions>
<rs5:AllowedNamespace Name="Downloads"/> <rs5:AllowedNamespace Name="Downloads" />
<v3:AllowRemovableDrives/> <v3:AllowRemovableDrives />
</rs5:FileExplorerNamespaceRestrictions> </rs5:FileExplorerNamespaceRestrictions>
<StartLayout> <StartLayout><![CDATA[
<![CDATA[
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"> <LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" /> <LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride> <DefaultLayoutOverride>
@ -56,15 +50,14 @@ ms.topic: include
</StartLayoutCollection> </StartLayoutCollection>
</DefaultLayoutOverride> </DefaultLayoutOverride>
</LayoutModificationTemplate> </LayoutModificationTemplate>
]]> ]]></StartLayout>
</StartLayout> <Taskbar ShowTaskbar="true" />
<Taskbar ShowTaskbar="true"/>
</Profile> </Profile>
</Profiles> </Profiles>
<Configs> <Configs>
<Config> <Config>
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
</Config> </Config>
</Configs> </Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
@ -75,14 +68,8 @@ ms.topic: include
::: zone pivot="windows-11" ::: zone pivot="windows-11"
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config"
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config"
xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
<Profiles> <Profiles>
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
<AllAppsList> <AllAppsList>
@ -98,11 +85,10 @@ ms.topic: include
</AllowedApps> </AllowedApps>
</AllAppsList> </AllAppsList>
<rs5:FileExplorerNamespaceRestrictions> <rs5:FileExplorerNamespaceRestrictions>
<rs5:AllowedNamespace Name="Downloads"/> <rs5:AllowedNamespace Name="Downloads" />
<v3:AllowRemovableDrives/> <v3:AllowRemovableDrives />
</rs5:FileExplorerNamespaceRestrictions> </rs5:FileExplorerNamespaceRestrictions>
<v5:StartPins> <v5:StartPins><![CDATA[{
<![CDATA[{
"pinnedList":[ "pinnedList":[
{"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"},
{"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"},
@ -113,15 +99,14 @@ ms.topic: include
{"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"}, {"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"},
{"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"} {"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"}
] ]
}]]> }]]></v5:StartPins>
</v5:StartPins> <Taskbar ShowTaskbar="true" />
<Taskbar ShowTaskbar="true"/>
</Profile> </Profile>
</Profiles> </Profiles>
<Configs> <Configs>
<Config> <Config>
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
</Config> </Config>
</Configs> </Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>

View File

@ -8,9 +8,8 @@ ms.topic: include
<!-- example of a kiosk experience and a restricted user experience with 2 profiles--> <!-- example of a kiosk experience and a restricted user experience with 2 profiles-->
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
<Profiles> <Profiles>
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"> <Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
<KioskModeApp AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" /> <KioskModeApp AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
@ -27,11 +26,11 @@ ms.topic: include
<Configs> <Configs>
<Config> <Config>
<Account>Weather app</Account> <Account>Weather app</Account>
<DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"/> <DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}" />
</Config> </Config>
<Config> <Config>
<Account>Library Kiosk</Account> <Account>Library Kiosk</Account>
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
</Config> </Config>
</Configs> </Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>

View File

@ -8,43 +8,40 @@ ms.topic: include
<!--UserGroup example--> <!--UserGroup example-->
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config">
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config"> <Profiles>
<!-- Add configuration here as needed -->
<Profiles> </Profiles>
<!-- Add configuration here as needed --> <Configs>
</Profiles> <Config>
<Account>contoso\user</Account>
<Configs> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<Account>contoso\user</Account> <Config>
<DefaultProfile Id="{GUID}"/> <Account>AzureAD\user@contoso.onmicrosoft.com</Account>
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<Account>AzureAD\user@contoso.onmicrosoft.com</Account> <Config>
<DefaultProfile Id="{GUID}"/> <Account>user</Account>
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<Account>user</Account> <Config>
<DefaultProfile Id="{GUID}"/> <AutoLogonAccount rs5:DisplayName="Hello World" />
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<AutoLogonAccount rs5:DisplayName="Hello World"/> <Config>
<DefaultProfile Id="{GUID}"/> <UserGroup Type="LocalGroup" Name="groupname" />
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<UserGroup Type="LocalGroup" Name="groupname" /> <Config>
<DefaultProfile Id="{GUID}"/> <UserGroup Type="ActiveDirectoryGroup" Name="contoso\groupname" />
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<UserGroup Type="ActiveDirectoryGroup" Name="contoso\groupname" /> <Config>
<DefaultProfile Id="{GUID}"/> <UserGroup Type="AzureActiveDirectoryGroup" Name="Group_GUID" />
</Config> <DefaultProfile Id="{GUID}" />
<Config> </Config>
<UserGroup Type="AzureActiveDirectoryGroup" Name="Group_GUID" /> </Configs>
<DefaultProfile Id="{GUID}"/>
</Config>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```

View File

@ -7,24 +7,20 @@ ms.topic: include
```powershell ```powershell
$assignedAccessConfiguration = @" $assignedAccessConfiguration = @"
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config">
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profiles>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config" <KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" />
> <v4:BreakoutSequence Key="Ctrl+A" />
<Profiles> </Profile>
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"> </Profiles>
<KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" /> <Configs>
<v4:BreakoutSequence Key="Ctrl+A"/> <Config>
</Profile> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
</Profiles> <DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}" />
<Configs> </Config>
<Config> </Configs>
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/>
<DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"/>
</Config>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
"@ "@

View File

@ -6,23 +6,19 @@ ms.topic: include
--- ---
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config">
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profiles>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config" <KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" />
> <v4:BreakoutSequence Key="Ctrl+A" />
<Profiles> </Profile>
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"> </Profiles>
<KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://www.contoso.com/ --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=2" /> <Configs>
<v4:BreakoutSequence Key="Ctrl+A"/> <Config>
</Profile> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
</Profiles> <DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}" />
<Configs> </Config>
<Config> </Configs>
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/>
<DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}"/>
</Config>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```

View File

@ -9,32 +9,27 @@ ms.topic: include
```powershell ```powershell
$assignedAccessConfiguration = @" $assignedAccessConfiguration = @"
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config">
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profiles>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" <AllAppsList>
> <AllowedApps>
<Profiles> <App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<AllAppsList> <App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
<AllowedApps> <App DesktopAppPath="%windir%\System32\cmd.exe" />
<App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" /> <App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" />
<App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" /> <App DesktopAppPath="%windir%\explorer.exe" />
<App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" /> <App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" />
<App DesktopAppPath="%windir%\System32\cmd.exe" /> <App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" />
<App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" /> </AllowedApps>
<App DesktopAppPath="%windir%\explorer.exe" /> </AllAppsList>
<App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" /> <rs5:FileExplorerNamespaceRestrictions>
<App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" /> <rs5:AllowedNamespace Name="Downloads" />
</AllowedApps> <v3:AllowRemovableDrives />
</AllAppsList> </rs5:FileExplorerNamespaceRestrictions>
<rs5:FileExplorerNamespaceRestrictions> <StartLayout><![CDATA[
<rs5:AllowedNamespace Name="Downloads"/>
<v3:AllowRemovableDrives/>
</rs5:FileExplorerNamespaceRestrictions>
<StartLayout>
<![CDATA[
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"> <LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" /> <LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride> <DefaultLayoutOverride>
@ -54,17 +49,16 @@ $assignedAccessConfiguration = @"
</StartLayoutCollection> </StartLayoutCollection>
</DefaultLayoutOverride> </DefaultLayoutOverride>
</LayoutModificationTemplate> </LayoutModificationTemplate>
]]> ]]></StartLayout>
</StartLayout> <Taskbar ShowTaskbar="true" />
<Taskbar ShowTaskbar="true"/> </Profile>
</Profile> </Profiles>
</Profiles> <Configs>
<Configs> <Config>
<Config> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> </Config>
</Config> </Configs>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
"@ "@
@ -108,33 +102,27 @@ Write-Output "Successfully applied Assigned Access configuration"
```powershell ```powershell
$assignedAccessConfiguration = @" $assignedAccessConfiguration = @"
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profiles>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" <AllAppsList>
xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config" <AllowedApps>
> <App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
<Profiles> <App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
<AllAppsList> <App DesktopAppPath="%windir%\System32\cmd.exe" />
<AllowedApps> <App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" />
<App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" /> <App DesktopAppPath="%windir%\explorer.exe" />
<App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" /> <App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" />
<App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" /> <App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" />
<App DesktopAppPath="%windir%\System32\cmd.exe" /> </AllowedApps>
<App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" /> </AllAppsList>
<App DesktopAppPath="%windir%\explorer.exe" /> <rs5:FileExplorerNamespaceRestrictions>
<App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" /> <rs5:AllowedNamespace Name="Downloads" />
<App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" /> <v3:AllowRemovableDrives />
</AllowedApps> </rs5:FileExplorerNamespaceRestrictions>
</AllAppsList> <v5:StartPins><![CDATA[{
<rs5:FileExplorerNamespaceRestrictions>
<rs5:AllowedNamespace Name="Downloads"/>
<v3:AllowRemovableDrives/>
</rs5:FileExplorerNamespaceRestrictions>
<v5:StartPins>
<![CDATA[{
"pinnedList":[ "pinnedList":[
{"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"},
{"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"},
@ -145,16 +133,16 @@ $assignedAccessConfiguration = @"
{"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"}, {"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"},
{"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"} {"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"}
] ]
}]]> }]]></v5:StartPins>
<Taskbar ShowTaskbar="true"/> <Taskbar ShowTaskbar="true" />
</Profile> </Profile>
</Profiles> </Profiles>
<Configs> <Configs>
<Config> <Config>
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
</Config> </Config>
</Configs> </Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
"@ "@

View File

@ -8,33 +8,27 @@ ms.topic: include
::: zone pivot="windows-10" ::: zone pivot="windows-10"
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config">
xmlns:xs="http://www.w3.org/2001/XMLSchema" <Profiles>
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" <AllAppsList>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <AllowedApps>
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config"> <App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
<Profiles> <App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
<AllAppsList> <App DesktopAppPath="C:\Windows\system32\cmd.exe" />
<AllowedApps> <App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" />
<App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" /> <App DesktopAppPath="%windir%\explorer.exe" />
<App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" /> <App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" />
<App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" /> <App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" />
<App DesktopAppPath="C:\Windows\system32\cmd.exe" /> </AllowedApps>
<App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" /> </AllAppsList>
<App DesktopAppPath="%windir%\explorer.exe" /> <rs5:FileExplorerNamespaceRestrictions>
<App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" /> <rs5:AllowedNamespace Name="Downloads" />
<App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" /> <v3:AllowRemovableDrives />
</AllowedApps> </rs5:FileExplorerNamespaceRestrictions>
</AllAppsList> <StartLayout><![CDATA[
<rs5:FileExplorerNamespaceRestrictions>
<rs5:AllowedNamespace Name="Downloads"/>
<v3:AllowRemovableDrives/>
</rs5:FileExplorerNamespaceRestrictions>
<StartLayout>
<![CDATA[
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"> <LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
<LayoutOptions StartTileGroupCellWidth="6" /> <LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride> <DefaultLayoutOverride>
@ -54,17 +48,16 @@ ms.topic: include
</StartLayoutCollection> </StartLayoutCollection>
</DefaultLayoutOverride> </DefaultLayoutOverride>
</LayoutModificationTemplate> </LayoutModificationTemplate>
]]> ]]></StartLayout>
</StartLayout> <Taskbar ShowTaskbar="true" />
<Taskbar ShowTaskbar="true"/> </Profile>
</Profile> </Profiles>
</Profiles> <Configs>
<Configs> <Config>
<Config> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> </Config>
</Config> </Configs>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```
@ -73,34 +66,27 @@ ms.topic: include
::: zone pivot="windows-11" ::: zone pivot="windows-11"
```xml ```xml
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<AssignedAccessConfiguration <AssignedAccessConfiguration xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config">
xmlns:xs="http://www.w3.org/2001/XMLSchema" <Profiles>
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
xmlns:default="http://schemas.microsoft.com/AssignedAccess/2017/config" <AllAppsList>
xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" <AllowedApps>
xmlns:v3="http://schemas.microsoft.com/AssignedAccess/2020/config" <App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
xmlns:v5="http://schemas.microsoft.com/AssignedAccess/2022/config"> <App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
<Profiles> <App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
<Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"> <App DesktopAppPath="C:\Windows\system32\cmd.exe" />
<AllAppsList> <App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" />
<AllowedApps> <App DesktopAppPath="%windir%\explorer.exe" />
<App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" /> <App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" />
<App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" /> <App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" />
<App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" /> </AllowedApps>
<App DesktopAppPath="C:\Windows\system32\cmd.exe" /> </AllAppsList>
<App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" /> <rs5:FileExplorerNamespaceRestrictions>
<App DesktopAppPath="%windir%\explorer.exe" /> <rs5:AllowedNamespace Name="Downloads" />
<App AppUserModelId="windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" /> <v3:AllowRemovableDrives />
<App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" /> </rs5:FileExplorerNamespaceRestrictions>
</AllowedApps> <v5:StartPins><![CDATA[{
</AllAppsList>
<rs5:FileExplorerNamespaceRestrictions>
<rs5:AllowedNamespace Name="Downloads"/>
<v3:AllowRemovableDrives/>
</rs5:FileExplorerNamespaceRestrictions>
<v5:StartPins>
<![CDATA[{
"pinnedList":[ "pinnedList":[
{"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"},
{"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"}, {"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"},
@ -111,17 +97,16 @@ ms.topic: include
{"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"}, {"packagedAppId": "windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"},
{"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"} {"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"}
] ]
}]]> }]]></v5:StartPins>
</v5:StartPins> <Taskbar ShowTaskbar="true" />
<Taskbar ShowTaskbar="true"/> </Profile>
</Profile> </Profiles>
</Profiles> <Configs>
<Configs> <Config>
<Config> <AutoLogonAccount rs5:DisplayName="MS Learn Example" />
<AutoLogonAccount rs5:DisplayName="MS Learn Example"/> <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}" />
<DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/> </Config>
</Config> </Configs>
</Configs>
</AssignedAccessConfiguration> </AssignedAccessConfiguration>
``` ```