mirror of
https://git.collinwebdesigns.de/vgpu/gridd-unlock-patcher.git
synced 2025-12-21 21:10:00 +00:00
added admin group support for all locales
This commit is contained in:
@@ -20,8 +20,12 @@ if ($dllPath) {
|
||||
# Take ownership
|
||||
takeown /F $fullPath | Out-Null
|
||||
|
||||
# Find "Admin Group" to support all locales e.g. "EN: administrators", "DE: Administratoren", ...
|
||||
$adminGroup = ([System.Security.Principal.SecurityIdentifier] "S-1-5-32-544").Translate([System.Security.Principal.NTAccount]).Value
|
||||
$adminGroupName = $adminGroup.Split('')[1]
|
||||
|
||||
# Grant full control to administrators
|
||||
icacls $fullPath /grant Administratoren:F | Out-Null
|
||||
icacls $fullPath /grant "$adminGroupName:F" | Out-Null
|
||||
|
||||
# Attempt to stop processes using the DLL (optional: may not apply to DriverStore)
|
||||
Get-Process | Where-Object {
|
||||
|
||||
Reference in New Issue
Block a user