This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# For personal use only. Provided AS IS and WITH ALL FAULTS. | |
# Set-WmiNamespaceSecurity.ps1 | |
# Example: Set-WmiNamespaceSecurity root/cimv2 add steve Enable,RemoteAccess | |
# https://blogs.msdn.microsoft.com/wmi/2009/07/27/scripting-wmi-namespace-security-part-3-of-3/ | |
function Set-WmiNamespaceSecurity { | |
Param ( |