Guest User

Kiosk XML

a guest
Feb 10th, 2021
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $nameSpaceName="root\cimv2\mdm\dmmap"
  2. $className="MDM_AssignedAccess"
  3. $obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
  4. Add-Type -AssemblyName System.Web
  5. $obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@"
  6. <?xml version="1.0" encoding="utf-8" ?>
  7. <AssignedAccessConfiguration
  8. xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config"
  9. xmlns:r1809="http://schemas.microsoft.com/AssignedAccess/201810/config"
  10. >
  11. <Profiles>
  12. <Profile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}">
  13. <AllAppsList>
  14. <AllowedApps>
  15. <App AppUserModelId="MSEdgeDev" r1809:AutoLaunch="true"/>
  16. </AllowedApps>
  17. </AllAppsList>
  18. <StartLayout>
  19. <![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">
  20. <LayoutOptions StartTileGroupCellWidth="6" />
  21. <DefaultLayoutOverride>
  22. <StartLayoutCollection>
  23. <defaultlayout:StartLayout GroupCellWidth="6">
  24. <start:Group Name="">
  25. <start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge Dev.lnk" />
  26. </start:Group>
  27. </defaultlayout:StartLayout>
  28. </StartLayoutCollection>
  29. </DefaultLayoutOverride>
  30. </LayoutModificationTemplate>
  31. ]]>
  32. </StartLayout>
  33. <Taskbar ShowTaskbar="false"/>
  34. </Profile>
  35. </Profiles>
  36. <Configs>
  37. <Config>
  38. <AutoLogonAccount/>
  39. <DefaultProfile Id="{9A2A490F-10F6-4764-974A-43B19E722C23}"/>
  40. </Config>
  41. </Configs>
  42. </AssignedAccessConfiguration>
  43. "@)
  44. Set-CimInstance -CimInstance $obj
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×