Skip to content

Instantly share code, notes, and snippets.

@antylama
Last active June 22, 2025 15:40
Show Gist options
  • Select an option

  • Save antylama/9e0a9d3e0618bccd80d872bbf03887c9 to your computer and use it in GitHub Desktop.

Select an option

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).
# 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