Hey Everybody!
So I just started using powershell and ps dsc. I want to do some testing of dsc between 2 computers and here is the dsc configuration that I am using:
configuration HelloWorld {
param ()
Node $computername
{
Create a Test File
File CreateTestFile
{
Ensure = “Present”
DestinationPath = “C:\Folder_Test\example.txt”
Contents = “Hello World.”
Type = “File”
}
}
}
So here are the steps I performed up to the error. First I ran that pasted and ran that function in a powershell console (of course as admin) which in turn created the mof. file which I had put in a folder on my desktop. I then proceeded to start the dsc configuration using this powershell command:
Start-DscConfiguration -Path C:\Users\UserFolder\Desktop\Bot1_Folder -ComputerName $ComputerName -Verbose -Wait -Force
Thats when I received this error:
The WS-Management service cannot process the request. The WMI service or the WMI provider returned an unknown error:
HRESULT 0x80041033
+ CategoryInfo : ResourceUnavailable: (root/Microsoft/…gurationManager:String) , CimException
+ FullyQualifiedErrorId : HRESULT 0x80041033
+ PSComputerName : $ComputerName
The computer I am using to push the config is Windows 7 laptop with powershell(wmf) v5 installed and the remote client is a Windows 7 work station with powershell(wmf) v5 installed. Any ideas on why the error occurred?