mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-23 10:47:22 +00:00
issue 1630 (script)
This commit is contained in:
parent
5819d7066e
commit
b8354605dc
@ -154,15 +154,18 @@ To set up a test account through Windows Configuration Designer, follow these st
|
|||||||
|
|
||||||
4. Follow the steps in [Apply a provisioning package](https://technet.microsoft.com/en-us/itpro/windows/configure/provisioning-apply-package) to apply the package that you created.
|
4. Follow the steps in [Apply a provisioning package](https://technet.microsoft.com/en-us/itpro/windows/configure/provisioning-apply-package) to apply the package that you created.
|
||||||
|
|
||||||
### Set up a test account in Group Policy
|
### Set up a tester account in Group Policy
|
||||||
To set up a test account using Group Policy, first create a Powershell script that configures the test account and assessment URL, and then create a scheduled task to run the script.
|
To set up a tester account using Group Policy, first create a Powershell script that configures the tester account and assessment URL, and then create a scheduled task to run the script.
|
||||||
|
|
||||||
#### Create a PowerShell script
|
#### Create a PowerShell script
|
||||||
This sample PowerShell script configures the test 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 test account for **$obj.TesterAccount**
|
- Use your tester account for **$obj.TesterAccount**
|
||||||
- Use your test account for **-UserName**
|
- Use your tester account for **-UserName**
|
||||||
|
|
||||||
|
>[!NOTE]
|
||||||
|
>The account that you specify for the tester account must already exist on the device.
|
||||||
|
|
||||||
```
|
```
|
||||||
$obj = get-wmiobject -namespace root/cimv2/mdm/dmmap -class MDM_SecureAssessment -filter "InstanceID='SecureAssessment' AND ParentID='./Vendor/MSFT'";
|
$obj = get-wmiobject -namespace root/cimv2/mdm/dmmap -class MDM_SecureAssessment -filter "InstanceID='SecureAssessment' AND ParentID='./Vendor/MSFT'";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user