DomainJoin cmd in PS1 fail for three instance
Directory: C:\AWSQuickstart\DomainJoin
Mode LastWriteTime Length Name
-a---- 6/13/2020 2:36 PM 3866 localhost.mof.error
----------ERROR-------
Write-NodeMOFFile : Invalid MOF definition for node 'localhost': Exception calling "ValidateInstanceText" with "1"
argument(s): "Convert property 'Name' value from type 'STRING[]' to type 'STRING' failed
At line:28, char:2
Buffer:
ame = "DomainJoin";
};^
insta
"
At
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:2369
char:21
-
... Write-NodeMOFFile $Name $mofNode $Script:NodeInstanceAlia ...
-
-
CategoryInfo : InvalidOperation: (:) [Write-Error], InvalidOperationException
-
FullyQualifiedErrorId : InvalidMOFDefinition,Write-NodeMOFFile
Compilation errors occurred while processing configuration 'DomainJoin'. Please review the errors reported in error
stream and modify your configuration code appropriately.
At
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:3917
char:5
-
throw $ErrorRecord
-
-
CategoryInfo : InvalidOperation: (DomainJoin:String) [], InvalidOperationException
-
FullyQualifiedErrorId : FailToProcessConfiguration
failed to run commands: exit status 1