Identity with Windows Server 2016 — Question 50
You network contains an Active Directory domain named contoso.com. The domain contains 1,000 desktop computers and 500 laptops. An organizational unit
(OU) named OU1 contains the computer accounts for the desktop computers and the laptops.
You create a Windows PowerShell script named Script1.ps1 that removes temporary files and cookies. You create a Group Policy object (GPO) named GPO1 and link GPO1 to OU1.
You need to run the script once weekly only on the laptops.
What should you do?
Answer options
- A. In GPO1, create a File preference that uses item-level targeting.
- B. In GPO1, create a Scheduled Tasks preference that uses item-level targeting.
- C. In GPO1, configure the File System security policy. Attach a WMI filter to GPO1.
- D. In GPO1, add Script1.ps1 as a startup script. Attach a WMI filter to GPO1.
Correct answer: B
Explanation
The correct answer is B because creating a Scheduled Tasks preference in GPO1 with item-level targeting allows the script to be scheduled to run weekly on the laptops specifically. Options A and C do not provide the capability to schedule the script execution, while option D would run the script at startup, which is not aligned with the requirement for a weekly execution.