Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

JEA Start-DscConfiguration fails with "The specified Username is invalid"

$
0
0

I'm trying to configure JEA a server (Windows 2012) but I'm running into a wall when I try to Start-DscConfiguration.

I started this configuration with a Domain account then with a local account. I'm not sure what I'm missing. neither account is a member of any groups. on the server. Below is the message I'm getting.

PS D:\Scripts\JEA> Start-DscConfiguration -Path C:\jea -ComputerName localhost -Verbose -wait -debug -force
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer ServerName with user sid
S-1-5-21-XXXXXXXX-XXXXXXXXX-XXXXXXXXX-XXXXXXX.
VERBOSE: [ServerName]: LCM:  [ Start  Set      ]
VERBOSE: [ServerName]:                            [DSCEngine] Importing the module C:\Program
Files\WindowsPowerShell\Modules\xJea\0.2.16.6\DscResources\MSFT_xJeaToolkit\MSFT_xJeaToolkit.psm1 in force mode.
DEBUG: [ServerName]:                            [DSCEngine]
    namespace Jea
    {
    using System.Collections;
    using System.Collections.Generic;
    using System.Globalization;
    public class Parameter
    {
        public string ValidatePattern;
        public string ValidateSet;
        public string ParameterType;
        public string Mandatory;
    }
    public class Proxy
    {
        public string Module;
        public string Name;
        public Hashtable Parameter;
        public Proxy()
        {
            Parameter = new Hashtable(System.StringComparer.InvariantCultureIgnoreCase);
        }
    }
    }
VERBOSE: [ServerName]:                            [DSCEngine] Importing the module C:\Program
Files\WindowsPowerShell\Modules\xJea\0.2.16.6\DscResources\MSFT_xJeaEndpoint\MSFT_xJeaEndpoint.psm1 in force mode.
VERBOSE: [ServerName]: LCM:  [ Start  Resource ]  [[xJeaToolKit]AzureAutoDeploy]
VERBOSE: [ServerName]: LCM:  [ Start  Test     ]  [[xJeaToolKit]AzureAutoDeploy]
VERBOSE: [ServerName]:                            [[xJeaToolKit]AzureAutoDeploy] Importing the module
MSFT_xJeaToolkit in force mode.
VERBOSE: [ServerName]:                            [[xJeaToolKit]AzureAutoDeploy] 16:30:20 Start Test
[JeaToolkit]AzureAutoDeploy
VERBOSE: [ServerName]:                            [[xJeaToolKit]AzureAutoDeploy]      [JeaToolkit]AzureAutoDeploy
Present
VERBOSE: [ServerName]:                            [[xJeaToolKit]AzureAutoDeploy] 16:30:20 Done  Test
[JeaToolkit]AzureAutoDeploy
VERBOSE: [ServerName]: LCM:  [ End    Test     ]  [[xJeaToolKit]AzureAutoDeploy]  in 0.2210 seconds.
VERBOSE: [ServerName]: LCM:  [ Skip   Set      ]  [[xJeaToolKit]AzureAutoDeploy]
VERBOSE: [ServerName]: LCM:  [ End    Resource ]  [[xJeaToolKit]AzureAutoDeploy]
VERBOSE: [ServerName]: LCM:  [ Start  Resource ]  [[xJeaEndPoint]AzureAutoDeployEP]
VERBOSE: [ServerName]: LCM:  [ Start  Test     ]  [[xJeaEndPoint]AzureAutoDeployEP]
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] Importing the module
MSFT_xJeaEndpoint in force mode.
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] 16:30:20 Start Test
[EndPoint]AzureAutoDeployEP
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] Test   [JeaEndPoint]
AzureAutoDeployEP
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP]        [JeaEndPoint]
AzureAutoDeployEP Absent
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] 16:30:20 Done  Test
[EndPoint]AzureAutoDeployEP
VERBOSE: [ServerName]: LCM:  [ End    Test     ]  [[xJeaEndPoint]AzureAutoDeployEP]  in 0.1780 seconds.
VERBOSE: [ServerName]: LCM:  [ Start  Set      ]  [[xJeaEndPoint]AzureAutoDeployEP]
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] Importing the module
MSFT_xJeaEndpoint in force mode.
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] 16:30:20 Start Set
[EndPoint]AzureAutoDeployEP
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] Test
[JeaSessionAccount]JSA-AzureAutoDeployEP
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] New
[JeaSessionAccount]JSA-AzureAutoDeployEP
DEBUG: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] ERROR:

PSMessageDetails      :
Exception             : System.Management.Automation.MethodInvocationException: Exception calling "SetInfo" with "0"
                        argument(s): "The specified username is invalid.
                        " ---> System.Runtime.InteropServices.COMException: The specified username is invalid.

                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
                        funcContext, Exception exception)
                           at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
                        frame)
                           at
                        System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                        frame)
                           at
                        System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                        frame)
                           at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
                           at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
                           at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object
                        dollarUnderbar, Object inputToProcess)
                           at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
                           at System.Management.Automation.CommandProcessorBase.Complete()
TargetObject          :
CategoryInfo          : NotSpecified: (:) [New-JeaSessionAccount], MethodInvocationException
FullyQualifiedErrorId : CatchFromBaseAdapterMethodInvokeTI,New-JeaSessionAccount
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
ScriptStackTrace      : at New-JeaSessionAccount, C:\Program
                        Files\WindowsPowerShell\Modules\xJea\0.2.16.6\DscResources\Library\JeaAccount.psm1: line 105
                        at Set-TargetResource, C:\Program
Files\WindowsPowerShell\Modules\xJea\0.2.16.6\DscResources\MSF
                        T_xJeaEndpoint\MSFT_xJeaEndpoint.psm1: line 147
PipelineIterationInfo : {}
VERBOSE: [ServerName]:                            [[xJeaEndPoint]AzureAutoDeployEP] 16:30:33 Done  Set
[EndPoint]AzureAutoDeployEP
VERBOSE: [ServerName]: LCM:  [ End    Set      ]  [[xJeaEndPoint]AzureAutoDeployEP]  in 12.4090 seconds.
PowerShell DSC resource MSFT_xJeaEndpoint  failed to execute Set-TargetResource functionality with error message:
System.Management.Automation.MethodInvocationException: Exception calling "SetInfo" with "0" argument(s): "The
specified username is invalid.
" ---> System.Runtime.InteropServices.COMException: The specified username is invalid.
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception
exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object
inputToProcess)
   at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
   at System.Management.Automation.CommandProcessorBase.Complete()
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost

VERBOSE: [ServerName]: LCM:  [ End    Set      ]
The SendConfigurationApply function did not succeed.
    + CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 1
    + PSComputerName        : localhost

VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 14.988 seconds


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>