PoShKeePass icon indicating copy to clipboard operation
PoShKeePass copied to clipboard

Update build.ps1

Open Fishy78 opened this issue 5 years ago • 3 comments

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.

Fishy78 avatar Jul 18 '19 17:07 Fishy78

Btw, the below changes (@@ -114,4 +146,4 @@ $RootFilesToCopy | ForEach-Object {) have not been commited by me

Fishy78 avatar Jul 18 '19 17:07 Fishy78

Any news?

Fishy78 avatar Aug 27 '19 10:08 Fishy78

I would really like to see this implemented

O-Rud avatar Aug 03 '22 14:08 O-Rud