# UAC_deaktivieren
$path = „HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System“
New-ItemProperty -Path $path -Name ‚ConsentPromptBehaviorAdmin‘ -Value 0 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚ConsentPromptBehaviorUser‘ -Value 3 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableInstallerDetection‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableLUA‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableVirtualization‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚PromptOnSecureDesktop‘ -Value 0 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚ValidateAdminCodeSignatures‘ -Value 0 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚FilterAdministratorToken‘ -Value 0 -PropertyType DWORD -Force | Out-Null
# UAC_aktivieren
$path = „HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System“
New-ItemProperty -Path $path -Name ‚ConsentPromptBehaviorAdmin‘ -Value 5 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚ConsentPromptBehaviorUser‘ -Value 3 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableInstallerDetection‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableLUA‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚EnableVirtualization‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚PromptOnSecureDesktop‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚ValidateAdminCodeSignatures‘ -Value 1 -PropertyType DWORD -Force | Out-Null
New-ItemProperty -Path $path -Name ‚FilterAdministratorToken‘ -Value 0 -PropertyType DWORD -Force | Out-Null
# UAC anzeigen
$path = „HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System“
$filter=“ConsentPromptBehaviorAdmin|ConsentPromptBehaviorUser|EnableInstallerDetection|EnableLUA|EnableVirtualization|PromptOnSecureDesktop|ValidateAdminCodeSignatures|FilterAdministratorToken“
(Get-ItemProperty $path).psobject.properties | where {$_.name -match $filter} | select name,value
Lösung: Prozess im System-Kontext ausführen:
https://blog.doenselmann.com/prozesse-als-local-system-ausfuehren/
Stand: 2023-01-23