FileExplorerNamespaceRestrictions for Windows 11 Assigned Access

Chris M 20 Reputation points
2024-08-08T17:00:05.48+00:00

Hi there!

I'm currently doing battle with Assigned Access Configuration in Windows 11. I have modified the XML example, and I have the allowed apps working, but I'm struggling to get the FileExplorerNamespaceRestrictions to actually restrict anything.

I previously had to change the alias of 'v5' to 'win11' to get the AllowedApps section to work. Is there a similar workaround for namespace restrictions?

Below is my code, as you can see it's not really evolved beyond the example, mainly because I've found the documentation so hard to get in to!

<?xml version="1.0" encoding="utf-8" ?>
<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:win11="http://schemas.microsoft.com/AssignedAccess/2022/config">
    <Profiles>
        <Profile Id="{XXXX}" Name="XXXX">
			<AllAppsList>
				<AllowedApps>
					<App AppUserModelId="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
					<App AppUserModelId="Microsoft.Windows.Photos_8wekyb3d8bbwe!App" />
					<App AppUserModelId="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
					<App DesktopAppPath="C:\Windows\system32\cmd.exe" />
					<App DesktopAppPath="%windir%\System32\WindowsPowerShell\v1.0\Powershell.exe" />
					<App DesktopAppPath="%windir%\explorer.exe" />
					<App AppUserModelId="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" />
				</AllowedApps>
			</AllAppsList>
			<rs5:FileExplorerNamespaceRestrictions>
				<rs5:AllowedNamespace Name="Downloads" />
				<v3:AllowRemovableDrives />
			</rs5:FileExplorerNamespaceRestrictions>
			    <win11:StartPins><![CDATA[{
					"pinnedList":[
						{"packagedAppId":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"},
						{"packagedAppId":"Microsoft.Windows.Photos_8wekyb3d8bbwe!App"},
						{"packagedAppId":"Microsoft.BingWeather_8wekyb3d8bbwe!App"},
						{"desktopAppLink":"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Command Prompt.lnk"},
						{"desktopAppLink":"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Windows PowerShell\\Windows PowerShell.lnk"},
						{"desktopAppLink":"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\File Explorer.lnk"},
						{"desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"}
					]
				}]]></win11:StartPins>
			<Taskbar ShowTaskbar="true" />
        </Profile>
    </Profiles>
    <Configs>
        <Config>
			<AutoLogonAccount rs5:DisplayName="XXXX" />
			<DefaultProfile Id="{XXXX}" />
        </Config>
    </Configs>
</AssignedAccessConfiguration>
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,199 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,884 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.