forked from ChrisTitusTech/winutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Recall logic (from main repo)
- Loading branch information
1 parent
4682db2
commit d3e0fb4
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function Invoke-MicrowinGetLocalizedUsers | ||
{ | ||
<# | ||
.SYNOPSIS | ||
Gets a localized user group representation for ICACLS commands (Port from DISMTools PE Helper) | ||
.PARAMETER admins | ||
Determines whether to get a localized user group representation for the Administrators user group | ||
.OUTPUTS | ||
A string containing the localized user group | ||
.EXAMPLE | ||
Invoke-MicrowinGetLocalizedUsers -admins $true | ||
#> | ||
param ( | ||
[Parameter(Mandatory = $true, Position = 0)] [bool]$admins | ||
) | ||
if ($admins) { | ||
return (Get-LocalGroup | Where-Object { $_.SID.Value -like "S-1-5-32-544" }).Name | ||
} else { | ||
return (Get-LocalGroup | Where-Object { $_.SID.Value -like "S-1-5-32-545" }).Name | ||
} | ||
} |
This file contains 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