diff --git a/windows/configuration/kiosk/kiosk-mdm-bridge.md b/windows/configuration/kiosk/kiosk-mdm-bridge.md index efb25325f8..8f5fdd8308 100644 --- a/windows/configuration/kiosk/kiosk-mdm-bridge.md +++ b/windows/configuration/kiosk/kiosk-mdm-bridge.md @@ -15,16 +15,16 @@ Here's an example to set AssignedAccess configuration: 1. Download the [psexec tool](/sysinternals/downloads/psexec). 1. Run `psexec.exe -i -s cmd.exe`. 1. In the command prompt launched by psexec.exe, enter `powershell.exe` to open PowerShell. - Step 4 is different for Windows 10 or Windows 11 1. Execute the following script: ::: zone pivot="windows-10" -```xml +```PowerShell $nameSpaceName="root\cimv2\mdm\dmmap" $className="MDM_AssignedAccess" $obj = Get-CimInstance -Namespace $namespaceName -ClassName $className Add-Type -AssemblyName System.Web + $obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@" @@ -78,6 +78,7 @@ $obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@" Set-CimInstance -CimInstance $obj ``` + ::: zone-end ::: zone pivot="windows-11" @@ -87,39 +88,26 @@ $nameSpaceName="root\cimv2\mdm\dmmap" $className="MDM_AssignedAccess" $obj = Get-CimInstance -Namespace $namespaceName -ClassName $className Add-Type -AssemblyName System.Web -$obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@" +$obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@" - - - - - - - - - - - - @@ -142,9 +129,9 @@ $obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@" - "@) Set-CimInstance -CimInstance $obj ``` + ::: zone-end