From 0c0dfd310ed4fb221cb88b3e465ee6fa10138487 Mon Sep 17 00:00:00 2001 From: jdeckerMS Date: Tue, 25 Apr 2017 08:30:47 -0700 Subject: [PATCH] shared PC WMI script --- .../set-up-shared-or-guest-pc.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/windows/configuration/set-up-shared-or-guest-pc.md b/windows/configuration/set-up-shared-or-guest-pc.md index 68d3432d27..e93bdd976e 100644 --- a/windows/configuration/set-up-shared-or-guest-pc.md +++ b/windows/configuration/set-up-shared-or-guest-pc.md @@ -85,7 +85,28 @@ You can configure Windows to be in shared PC mode in a couple different ways: ![Shared PC settings in ICD](images/icd-adv-shared-pc.png) -- WMI bridge: Environments that use Group Policy can use the WMI bridge to configure the [SharedPC CSP](https://msdn.microsoft.com/library/windows/hardware/mt723294.aspx). +- WMI bridge: Environments that use Group Policy can use the [MDM Bridge WMI Provider](https://msdn.microsoft.com/library/windows/desktop/dn905224.aspx) to configure the [MDM_SharedPC class](https://msdn.microsoft.com/library/windows/desktop/mt779129.aspx). For example, open PowerShell as an administrator and enter the following: + +``` +$sharedPC = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SharedPC" +$sharedPC.EnableSharedPCMode = $True +$sharedPC.SetEduPolicies = $True +$sharedPC.SetPowerPolicies = $True +$sharedPC.MaintenanceStartTime = 0 +$sharedPC.SignInOnResume = $True +$sharedPC.SleepTimeout = 0 +$sharedPC.EnableAccountManager = $True +$sharedPC.AccountModel = 2 +$sharedPC.DeletionPolicy = 1 +$sharedPC.DiskLevelDeletion = 25 +$sharedPC.DiskLevelCaching = 50 +$sharedPC.RestrictLocalStorage = $False +$sharedPC.KioskModeAUMID = "" +$sharedPC.KioskModeUserTileDisplayText = "" +$sharedPC.InactiveThreshold = 0 +Set-CimInstance -CimInstance $sharedPC +Get-CimInstance -Namespace $namespaceName -ClassName $MDM_SharedPCClass +``` ### Create a provisioning package for shared use