Forum Discussion
COF_Utility_ITC
Jan 29, 2026Copper Contributor
Get-Secret fails when PowerShell script runs as a scheduled task.
I have a PowerShell backup script that connects to SMB shares, copies files from one share to the other share, and disconnects. Passwords used to connect to the shares are stored in a SecretStore. ...
Feb 01, 2026
I wrote. a blog post about this a few years back, I added a a note back then:
This only works when the vault is not protected by a password, you can remove the password from the vault by using:
Set-SecretStoreConfiguration -Authentication None
(https://powershellisfun.com/2022/07/07/using-the-powershell-secretmanagement-module/)