# The configuration password cannot be read

**URL:** <https://forum.rclone.org/t/the-configuration-password-cannot-be-read/34001>\
**Category:** Help and Support\
**Created:** [November 10, 2022, 12:41pm UTC](https://forum.rclone.org/t/the-configuration-password-cannot-be-read/34001 "2022-11-10T12:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![albertony](https://forum.rclone.org/user_avatar/forum.rclone.org/albertony/32/8586_2.png) [@albertony](https://forum.rclone.org/u/albertony)\
**Post date:** [November 11, 2022, 6:38am UTC](https://forum.rclone.org/t/the-configuration-password-cannot-be-read/34001/4 "2022-11-11T06:38:54Z")

</div>

That command you posted only **writes** to a file, `... | Out-File -FilePath D:\rcpw\rcpw.txt`, and would not work regardless of PowerShell version. I assume you missed some of the contant of the D:\rcpw\rcpw.ps1 file?

Looks like you took inspiration from this thread:

> [@How to use RCLONE\_PASSWORD\_COMMAND with Windows Powershell for config password](https://forum.rclone.org/t/how-to-use-rclone-password-command-with-windows-powershell-for-config-password/15950):
>
> Rclone release 1.51 includes support for a new config --password-command, documented at: [https://rclone.org/docs/#configuration-encryption](https://rclone.org/docs/#configuration-encryption) This article demonstrates how to use the Windows Powershell SecureString type and PSCredential to store your configuration file password securely in a file. Generate your secure password to a disk file (for the purprose of this example, U:\rcpw.txt): Read-Host -Prompt 'Enter rclone configuration password' -AsSecureString | ConvertFrom-SecureString | Out-…

---

_[View the full topic](https://forum.rclone.org/t/the-configuration-password-cannot-be-read/34001)._
