# Can't console enroll windows pc

**URL:** <https://discourse.crowdsec.net/t/cant-console-enroll-windows-pc/1538>\
**Category:** crowdsec\
**Created:** [December 2, 2023, 6:35pm UTC](https://discourse.crowdsec.net/t/cant-console-enroll-windows-pc/1538 "2023-12-02T18:35:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mertens](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/mertens/32/742_2.png) [@Mertens](https://discourse.crowdsec.net/u/Mertens)\
**Post date:** [December 2, 2023, 6:35pm UTC](https://discourse.crowdsec.net/t/cant-console-enroll-windows-pc/1538/1 "2023-12-02T18:35:46Z")

</div>

Hi,

Im trying to enroll my windows pc but it get the following error:

time=“02-12-2023 19:31:05” level=fatal msg=“failed to load Local API: loading online client credentials: failed to read api server credentials configuration file ‘C:\ProgramData\CrowdSec\config\online\_api\_credentials.yaml’: open C:\ProgramData\CrowdSec\config\online\_api\_credentials.yaml: Access is denied.”

What can i do?

Thank you!

---

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [December 3, 2023, 10:11am UTC](https://discourse.crowdsec.net/t/cant-console-enroll-windows-pc/1538/2 "2023-12-03T10:11:10Z")

</div>

> [@Mertens](#):
>
> failed to read api server credentials configuration file ‘C:\ProgramData\CrowdSec\config\online\_api\_credentials.yaml’: open C:\ProgramData\CrowdSec\config\online\_api\_credentials.yaml: Access is denied.”

You user does not have admin permissions to read the configuration files. If you run powershell as admin it will allow you to read the file.

---

<div class="post-metadata">

**Author:** ![Mertens](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/mertens/32/742_2.png) [@Mertens](https://discourse.crowdsec.net/u/Mertens)\
**Post date:** [December 3, 2023, 10:30am UTC](https://discourse.crowdsec.net/t/cant-console-enroll-windows-pc/1538/3 "2023-12-03T10:30:32Z")

</div>

Thank you! it works 🙂
