PoShKeePass
PoShKeePass copied to clipboard
Update build.ps1
Due windows system rights it is not allowed for a non-elevated user to create or change the KeePassConfiguration.xml due it is located at "C:\Program Files\WindowsPowerShell\Modules\PoShKeePass\2.1.3.0". The proposed extension checks the right to write the configuration and creates, if necessary, a new empty configuration file either at $PSScriptRoot or in %AppData%\PoShKeePass. Advantage:
- In any case the module finds a fully working configuration file
- Any user can use his own KeePass Containers Neutral:
- There is usually no global configuration file except for elevated Administrators Disadvantage:
- Is the script is used e.g. in a scheduled task, the "executing" user needs to have writing rights to the configuration. Maybe it is necessary to add a switch to override the write check.
Btw, the below changes (@@ -114,4 +146,4 @@ $RootFilesToCopy | ForEach-Object {) have not been commited by me
Any news?
I would really like to see this implemented