Hi guys I have encountered a problem that seems to be something that google do not know about yet
hope for your help
I have HelloWorldDSC.ps1 file on my desktop, and trying to run (F5) it from ISE as Administrator.
In response I got following error:
LCM failed to retrieve the property PendingJobStep from the object of class dscInternalCache.
Here is script contents (its just a simple copy paste from getting started resources):
Configuration HelloWorldDSC
{
Import-DscResource –ModuleName PSDesiredStateConfiguration
Node localhost
{
File SampleFile {
Ensure = 'Present'
DestinationPath = 'C:\HelloWorld.txt'
Contents = "Hello World!"
}
Environment SampleEnvironmentVariable
{
Ensure = 'Present'
Name = 'HelloFromDSC'
Value = 'Hello World'
}
}
}
HelloWorldDSC
Start-DscConfiguration -Wait -Verbose -Path .\HelloWorldDSC
And here is full output:
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.