Я поборол это, остались только эти ошибки
Ошибка:
При выполнении "$error.Clear();
buildToBuildUpgrade-ExsetdataAtom -AtomName SharedMachineSettings -DomainController $RoleDomainController
" произошла следующая ошибка: "System.Management.Automation.ParameterBindingValidationException: Не удается привязать аргумент к параметру "DomainController", так как он имеет значение NULL.
в System.Management.Automation.ParameterBinderBase.ValidateNullOrEmptyArgument(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, Type argumentType, Object parameterValue, Boolean recurseIntoCollections)
в System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
в System.Management.Automation.CmdletParameterBinderController.BindParameter(CommandParameterInternal argument, MergedCompiledCommandParameter parameter, ParameterBindingFlags flags)
в System.Management.Automation.CmdletParameterBinderController.BindParameter(UInt32 parameterSets, CommandParameterInternal argument, MergedCompiledCommandParameter parameter, ParameterBindingFlags flags)
в System.Management.Automation.CmdletParameterBinderController.BindParameters(UInt32 parameterSets, Collection`1 arguments)
в System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)
в System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
в System.Management.Automation.CommandProcessor.BindCommandLineParameters()
в System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
в System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
в System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
в System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---
в System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
в System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
в System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
в System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
в System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)".