# Scheduled task: Enter password to open repository:

**URL:** <https://kopia.discourse.group/t/scheduled-task-enter-password-to-open-repository/2434>\
**Category:** Support\
**Created:** [November 16, 2023, 9:33pm UTC](https://kopia.discourse.group/t/scheduled-task-enter-password-to-open-repository/2434 "2023-11-16T21:33:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carl0s](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/carl0s/32/255_2.png) [@carl0s](https://kopia.discourse.group/u/carl0s)\
**Post date:** [November 16, 2023, 9:33pm UTC](https://kopia.discourse.group/t/scheduled-task-enter-password-to-open-repository/2434/1 "2023-11-16T21:33:31Z")

</div>

any ideas why my script is emailing me its log file results with:  
"Enter password to open repository: "

if I run the task or script manually it works.

on this system I did do some playing around with copying the kopia configs to \windows\system32\config\systemprofile, while I was exploring whether running as SYSTEM user helped with file permissions (which it didn’t - see thread: [Kopia utilise SeBackupPrivilege on win32 to bypass NTFS ACLs - #4 by basldfalksjdf](https://kopia.discourse.group/t/kopia-utilise-sebackupprivilege-on-win32-to-bypass-ntfs-acls/1317/4))

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [November 17, 2023, 7:38am UTC](https://kopia.discourse.group/t/scheduled-task-enter-password-to-open-repository/2434/2 "2023-11-17T07:38:25Z")

</div>

In Windows password is stored in Credential Manager - if your automated way asks for password it means that kopia does not have rights to access it the way how you run it.

This is windows wizardry you find the way to solve or if not, use simplest possible method in your automated script:

```auto
kopia snapshot create --password "$password" --all

```

and provide `$password` using whatever you are familiar with. Can be even explicitly hardcoded (not nice and secure but good start).
