Last active
June 22, 2025 15:40
-
-
Save antylama/9e0a9d3e0618bccd80d872bbf03887c9 to your computer and use it in GitHub Desktop.
Changes the frequency of forcing a password change in the Płatnik program (36500 - days).
This file contains hidden or 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
| # BACKUP YOUR REGISTRY before even thinking of copypasting and running this on your PC | |
| # the person executing this script is the one and only responsible | |
| # for any damage it may incur | |
| # you've been warned | |
| Get-ChildItem -Recurse 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Asseco Poland SA' | | |
| ForEach-Object { | |
| $key = $_ | |
| if ($key.Name -imatch '\\Parametry$') { | |
| Write-Verbose $key.Name -Verbose | |
| $key.property | ForEach-Object { | |
| $prop = $_ | |
| $value = $key | Get-ItemPropertyValue -Name $prop | |
| Write-Host $prop $value | |
| if ($prop = 'LimitHasla') { | |
| Set-ItemProperty -Path "Registry::$key" -Name $prop -Value '36500' | |
| } | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment