Skip to content

Commit

Permalink
Fixes SID for S-1-5-19 EvotecIT/SecurityPolicy#2
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Feb 4, 2023
1 parent c4a95fd commit 5d05ee6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Public/Converts/ConvertFrom-SID.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function ConvertFrom-SID {
Error = ''
}
'S-1-5-19' = [PSCustomObject] @{
Name = 'NT AUTHORITY\NETWORK SERVICE'
Name = 'NT AUTHORITY\LOCAL SERVICE'
SID = 'S-1-5-19'
DomainName = ''
Type = 'WellKnownGroup'
Expand Down
8 changes: 4 additions & 4 deletions Tests/ConvertFrom-Sid.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Describe -Name 'Testing ConvertFrom-SID' {
Error = ''
}
$ExpectedResult1 = [PSCustomObject] @{
Name = 'NT AUTHORITY\NETWORK SERVICE'
Name = 'NT AUTHORITY\LOCAL SERVICE'
SID = 'S-1-5-19'
Type = 'WellKnownGroup'
Error = ''
Expand Down Expand Up @@ -62,7 +62,7 @@ Describe -Name 'Testing ConvertFrom-SID - return as NotAdministrative' {
Error = ''
}
$ExpectedResult1 = [PSCustomObject] @{
Name = 'NT AUTHORITY\NETWORK SERVICE'
Name = 'NT AUTHORITY\LOCAL SERVICE'
SID = 'S-1-5-19'
Type = 'WellKnownGroup'
Error = ''
Expand Down Expand Up @@ -104,7 +104,7 @@ Describe -Name 'Testing ConvertFrom-SID' {
Error = ''
}
$ExpectedResult1 = [PSCustomObject] @{
Name = 'NT AUTHORITY\NETWORK SERVICE'
Name = 'NT AUTHORITY\LOCAL SERVICE'
SID = 'S-1-5-19'
Type = 'WellKnownGroup'
Error = ''
Expand Down Expand Up @@ -147,7 +147,7 @@ Describe -Name 'Testing ConvertFrom-SID' {
Error = ''
}
$ExpectedResult1 = [PSCustomObject] @{
Name = 'NT AUTHORITY\NETWORK SERVICE'
Name = 'NT AUTHORITY\LOCAL SERVICE'
SID = 'S-1-5-19'
Type = 'WellKnownGroup'
Error = ''
Expand Down

0 comments on commit 5d05ee6

Please sign in to comment.