I am trying to push a Desired State Configuration containing credentials to a remote server using Powershell 5.1. According to the DSC documentation, this should not be a problem, because "Beginning with PowerShell version 5.0, the entire MOF file is encrypted by default when it is applied to the node using the Start-DSCConfiguration cmdlet."
However, whenever I tried without using an encryption certificate, I always got the usual error message about plain text passwords in unencrypted MOF files (System.InvalidOperationException error processing property 'Credential' OF TYPE 'File': Converting and storing encrypted passwords as plain text is not recommended.).
Is this an error in the manual, or am I just doing it wrong? In other words: How can I push a DSC configuration with encrypted MOF files without setting up certificates?
Start-DscConfiguration
? Not using a pull server? – briantist