Avatar

Links

michael-sabrnak-swi (corporate)
MyKEms (personal)
@rss
  • Ansible/Packer over WinRM can experience UAC Elevated rights issues if logged over the network.

    To fix the issue:

    # Set LocalAccountTokenFilterPolicy to 1
    $token_path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
    $token_prop_name = "LocalAccountTokenFilterPolicy"
    $token_key = Get-Item -Path $token_path
    $token_value = $token_key.GetValue($token_prop_name, $null)
    if ($token_value -ne 1) {
        Write-Host "Setting LocalAccountTokenFilterPolicy to 1"
        if ($null -ne $token_value) {
            Remove-ItemProperty -Path $token_path -Name $token_prop_name
        }
        New-ItemProperty -Path $token_path -Name $token_prop_name -Value 1 -PropertyType DWORD > $null
    }
    

    How UAC remote restrictions work

    To better protect those users who are members of the local Administrators group, we implement UAC restrictions on the network. This mechanism helps prevent against loopback attacks. This mechanism also helps prevent local malicious software from running remotely with administrative rights.

    Created Tue, 01 Jun 2021 11:12:30 +0000
  • If you experience your Windows 10 machine wakes up from sleep you can disable this behavior following this manual.

    • Right click to Start > Run
    • Type: powercfg.cpl > OK
    • Choose you active plan (in this case it’s High performance) and click to Change plan settings
    • Click to Change advanced power settings
    • Navigate to Sleep > Allow wake timers > Disable (in case you can’t change settings you need to click in top to “ Change settings that are currently unavailable “)

    TIP:

    Created Sun, 09 Feb 2020 14:18:07 +0000
  • How to fix problem in the “DCOM: Machine Access Restrictions” and “DCOM: Machine Launch Restrictions”.

    If you see pool of errors with DCOM 10024 in System log then proceed with followng steps to fix this:

    Created Sun, 04 Jun 2017 12:31:48 +0000
  • Short guide How to audit manipulation with files and folders on Windows File Server.

    1. First thing first you must configure Security policy to enable Auditing on machine:

    Created Tue, 04 Oct 2016 07:43:15 +0000
  • During installation of new executable file may popup alert message: Error 1603: Fatal Error During Installation.
    This solution is applicable only for Microsoft Terminal Services servers (+Citrix servers):

    Created Thu, 07 Jul 2016 08:42:41 +0000
  • Resolution for “Windows Installer – The system administrator has set policies to prevent this installation.

    • RUN > secpol.msc
      • Software Restriction Policies > Enforcement
        • All software files except libraries (such as DLLs)
        • All users except local administrators
        • Ignore certificate rules
    • RUN > regedit
      • HKLMSOFTWAREPoliciesMicrosoftWindowsInstaller
        • DisableMSI > Value data: 0 (Decimal) – no reboot needed

    Description of DisableMSI:

    Created Thu, 19 May 2016 13:40:15 +0000