It should be noted the MOF file needs to be saved with Unicode or ANSI encoding otherwise Start-DscConfiguration throws an error ('PowerShell Desired State Configuration failed to register the MOF file {0} using Mofcomp.exe during discovery of...'). This means you can't use the PowerShell ISE to write it as it defaults to UTF-8.
↧