Lab 18c Including Additional Security Permissions

In this lab, you will modify the WMI moniker to include the specification of additional security permissions. You will use a script that displays information about the display.

Lab Instructions

  1. Open Notepad.exe.

  2. On the first line, specify Option Explicit to ensure variables are declared and spelled correctly.

  3. On the next line, declare the following variables: objWMIService, colItems, and objItem. These are the same variables you used in previous scripts in this chapter.

  4. Set objWMIService equal to what comes back from the GetObject method when used in conjunction with the WMI moniker. In addition, you want to define an impersonation level of Impersonate as well as the special debug privilege. Your code ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.