PowerShell / WmiNamespaceSecurityDsc

This module contains DSC resources to manage WMI Namespace Security.
MIT License
21 stars 14 forks source link

Removed transform to computer name for local Principal #3

Closed rdavisunr closed 6 years ago

rdavisunr commented 6 years ago

The Set() method includes code that transforms the domain variable to $env:computername when the domain is empty or when it is "BUILTIN". However, the subsequent calls to create a NTAccount and translate that account into a SID fail when the domain is set to $env:computername.

The SID lookup works fine when the domain is set to empty string, "." or "BUILTIN".


This change is Reviewable

SteveL-MSFT commented 6 years ago

Thanks for the contribution!

rdavisunr commented 6 years ago

@SteveL-MSFT - no problem. There's one more pull request in there for the changes to the Test method.