Plain text password issue

sns 9,236 Reputation points
2022-02-19T07:07:55.243+00:00

Even I have uncommented 36th line in the script, it is giving error which describing it will not allow to save the credentials as a plain text.
Please suggest.176091-capture.png . PFA

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,528 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 46,796 Reputation points
    2022-02-19T15:29:40.487+00:00

    Are you using a domain account in the credential? If so, you also need PSDscAllowDomainUser = $true in the configuration data block.

    See here: configdatacredentials


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.