Chapter 7: Requesting Additional Privileges for WMI 141
Quick Check
Q: What is an example of a privileged operation?
A: One privileged operation is the Shutdown privilege.
Q: Why were some privileges removed from a basic running WMI query?
A: Some privileges were removed from basic running WMI scripts as a security measure. To
perform certain privileged operations, the script writer must specifically request the privi-
lege prior to using it.
Obtaining a Collection of Privileges
When you use the Privilege property on a WMI security object, you get back an object that rep-
resents a collection ofprivileges. This object is called an SWbemPr ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.