Skip to content

Commit

Permalink
Remove unused function Convert-SidStringToSid
Browse files Browse the repository at this point in the history
  • Loading branch information
itm4n committed Jan 9, 2025
1 parent ef1c82f commit f60c6ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions info/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- The helper function 'Get-ModifiableRegistryPath' was replaced by 'Get-ObjectAccessRight'.
- The helper function 'Test-ServiceDiscretionaryAccessControlList' was replaced by 'Get-ObjectAccessRight'.
- The helper function 'Get-ServiceDiscretionaryAccessControlList' was replaced by 'Get-ObjectAccessRight'.
- The helper function 'Convert-SidStringToSid' is not used and was therefore removed.

## 2025-01-08

Expand Down
16 changes: 0 additions & 16 deletions src/helper/Utility.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -176,22 +176,6 @@ function Convert-DateToString {
}
}

function Convert-SidStringToSid {

[CmdletBinding()]
param(
[String] $Sid
)

try {
$IdentityUser = New-Object System.Security.Principal.NTAccount($(Convert-SidToName -Sid $Sid))
$IdentityUser.Translate([System.Security.Principal.SecurityIdentifier])
}
catch {
Write-Warning "$($MyInvocation.MyCommand) | Failed to translate SID: $($Sid)"
}
}

function Convert-SidToName {
<#
.SYNOPSIS
Expand Down

0 comments on commit f60c6ff

Please sign in to comment.