Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Removed transform to computer name for local Principal #3

Merged

Conversation

rdavisunr
Copy link

@rdavisunr rdavisunr commented Apr 4, 2018

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

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".
@SteveL-MSFT SteveL-MSFT merged commit 026fbbe into PowerShell:master Apr 4, 2018
@SteveL-MSFT
Copy link
Member

Thanks for the contribution!

@rdavisunr rdavisunr deleted the issue-2-local-group-sid-translate branch April 4, 2018 23:12
@rdavisunr
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants