PS C:\Users\Alexandr\Desktop> C:\Users\Alexandr\Desktop\HelloWorldDSC.ps1
Directory: C:\Users\Alexandr\Desktop\HelloWorldDSC
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 18.11.2015 15:17 2866 localhost.mof
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 MAC with user sid S-1-5-21-1387981107-4004572697-3743767158-1001.
LCM failed to retrieve the property PendingJobStep from the object of class dscInternalCache .
+ CategoryInfo : ObjectNotFound: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 6
+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 0.048 seconds
Just can not understand from where to get started investigating issue, what I also have tried without success is to delete files from C:\Windows\System32\Configuration folder.
Get the DSCDiagnostics module and start a DSC trace. Then, try again - you should get more verbose logging. Also, it’d be helpful to know what versions of everything you’re running.
Message : Function MSFT_DSCLocalConfigurationManager_Invoke_SendConfigurationApply started with parameters
Class name: MSFT_DSCLocalConfigurationManager
Method Name: SendConfigurationApply
Namespace: root\microsoft\windows\desiredstateconfiguration
Message : Operation Start-DscConfiguration started by user sid S-1-5-21-1387981107-4004572697-3743767158-1001 from computer MAC.
Sequence 1 just showing me whole bunch of operationals.
BTW versions, here is what host showing:
Name : Windows PowerShell ISE Host
Version : 5.0.10586.0
InstanceId : 6f6ad33a-967e-4fa2-b0ea-4ded208ce0c3
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : uk-UA
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
There is no Start-DSCTrace command available, seems that we are speaking about different DSCTrace modules, can you please provide the one you are talking about?
Here is what is have:
Get-Command -Module xDscDiagnostics
CommandType Name Version Source
----------- ---- ------- ------
Function Get-xDscOperation 2.0 xDscDiagnostics
Function Trace-xDscOperation 2.0 xDscDiagnostics
Function Update-xDscEventLogStatus 2.0 xDscDiagnostics