mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-29 05:37:22 +00:00
updatess
This commit is contained in:
parent
0be8ec1bce
commit
e9d69ba635
@ -146,28 +146,26 @@ Follow the steps in [Apply a provisioning package][WIN-2] to apply the package t
|
|||||||
|
|
||||||
Environments that use Group Policy can use the [MDM Bridge WMI Provider](/windows/win32/dmwmibridgeprov/mdm-bridge-wmi-provider-portal) to configure the [MDM_SharedPC class](/windows/win32/dmwmibridgeprov/mdm-sharedpc). For all device settings, the WMI Bridge client must be executed under local system user; for more information, see [Using PowerShell scripting with the WMI Bridge Provider](/windows/client-management/mdm/using-powershell-scripting-with-the-wmi-bridge-provider). For example, open PowerShell as an administrator and enter the following:
|
Environments that use Group Policy can use the [MDM Bridge WMI Provider](/windows/win32/dmwmibridgeprov/mdm-bridge-wmi-provider-portal) to configure the [MDM_SharedPC class](/windows/win32/dmwmibridgeprov/mdm-sharedpc). For all device settings, the WMI Bridge client must be executed under local system user; for more information, see [Using PowerShell scripting with the WMI Bridge Provider](/windows/client-management/mdm/using-powershell-scripting-with-the-wmi-bridge-provider). For example, open PowerShell as an administrator and enter the following:
|
||||||
|
|
||||||
```powershell
|
|
||||||
$sharedPC = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SharedPC"
|
|
||||||
$sharedPC.EnableSharedPCMode = $True
|
|
||||||
$sharedPC.SetEduPolicies = $True
|
|
||||||
$sharedPC.SetPowerPolicies = $True
|
|
||||||
|
|
||||||
This sample PowerShell script configures the tester account and the assessment URL. Edit the sample to:
|
This sample PowerShell script configures the tester account and the assessment URL. Edit the sample to:
|
||||||
|
|
||||||
- Use your assessment URL for **$obj.LaunchURI**
|
- Use your assessment URL for **$obj.LaunchURI**
|
||||||
- Use your tester account for **$obj.TesterAccount**
|
- Use your tester account for **$obj.TesterAccount**
|
||||||
- Use your tester account for **-UserName**
|
- Use your tester account for **-UserName**
|
||||||
```
|
|
||||||
|
|
||||||
>[!NOTE]
|
>[!NOTE]
|
||||||
>The account that you specify for the tester account must already exist on the device. For steps to create the tester account, see [Set up a dedicated test account](./take-a-test-single-pc.md#set-up-a-dedicated-test-account).
|
>The account that you specify for the tester account must already exist on the device.
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
$obj = get-wmiobject -namespace root/cimv2/mdm/dmmap -class MDM_SecureAssessment -filter "InstanceID='SecureAssessment' AND ParentID='./Vendor/MSFT'";
|
$sharedPC = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SharedPC"
|
||||||
$obj.LaunchURI='https://www.foo.com';
|
$secureAssessment = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_SecureAssessment"
|
||||||
$obj.TesterAccount='TestAccount';
|
|
||||||
$obj.put()
|
$sharedPC.AccountModel = 1
|
||||||
Set-AssignedAccess -AppUserModelId Microsoft.Windows.SecureAssessmentBrowser_cw5n1h2txyewy!App -UserName TestAccount
|
$sharedPC.KioskModeAUMID = "Microsoft.Windows.SecureAssessmentBrowser_cw5n1h2txyewy!App"
|
||||||
|
$sharedPC.KioskModeUserTileDisplayText = "Take a Test"
|
||||||
|
$secureAssessment.LaunchURI='https://contoso.com/algebra-exam'
|
||||||
|
|
||||||
|
Set-CimInstance -CimInstance $sharedPC
|
||||||
|
Set-CimInstance -CimInstance $secureAssessment
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user