Chapter 7: Requesting Additional Privileges for WMI 151
Quiz Yourself
Q: What is required to use the Add method for obtaining elevated privileges?
A: To use the Add method to obta
in elevated privileges, you can either directly use the
numeric value of one of the WbemPrivilegeEnum constants or define your own constant
and set it equal to the integer.
Q: When adding a privilege as a string, how do you write the privilege?
A: When adding a privilege as a string, you write the privilege in the form of seprivilege-
name
privilege.
Q: When adding a privilege in the moniker, in w
hat form do you write the privilege?
A: When adding a privilege in the moniker, you drop the se prefix and the privilege
suffix
so you are left with only the privilege name. ...