I am running version 4.0 on both my 8.1 workstation and a server thats running 2012r2
I am trying to push a configuration to it to start making it Pull its config vs. a push
I keep getting this error
Undefined property Name
At line:38, char:2
Buffer:
;
Name=“DemoPull”;
};^
+ CategoryInfo : SyntaxError: (root/Microsoft/…gurationManager:String) , CimException
+ FullyQualifiedErrorId : MiClientApiError_Failed
+ PSComputerName : serv-01-pull
FullyQualifiedErrorId : MiClientApiError_Failed
heres my config file
#requires -version 4.0 Configuration DemoPull { Param( [string]$guid, [System.Management.Automation.Credential()]$Credential = [System.Management.Automation.PSCredential]::Empty ) Import-DscResource -moduleName xNetworking,xTimeZone Node $Allnodes.nodename { xTimeZone Eastern { TimeZone = "Eastern Standard Time" } #end xTimeZone File MyWork { DestinationPath = 'C:\MyWork' Ensure = 'Present' Force = $True Type = 'Directory' } #end File resource xDnsServerAddress dc01 { Address = '192.168.1.110' InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } #end DNSServer resource Group MyDemo { GroupName = 'MyDemo' Description = 'A demo local group' Ensure = 'Present' Credential = $Credential MembersToInclude = 'hcorp\jcool' } #end Group resource LocalConfigurationManager { AllowModuleOverwrite = $True ConfigurationID = $Guid ConfigurationMode = "ApplyandMonitor" RefreshMode = 'Pull' DownloadManagerName = "DscFileDownloadManager" DownloadManagerCustomData = @{ SourcePath = "\\hyper-host\DSCConfig" } CertificateID = $node.thumbprint } #LCM } #end node } #close configuration $ConfigData = @{ AllNodes = @( @{ NodeName = "serv-01-pull" CertificateFile = "C:\certs\serv-01-pull.cer" Thumbprint = "3BEB5E113BE9448713C7C21724C0F9C2F1ECCE3C" }; ); } Set-DscLocalConfigurationManager -ComputerName serv-01-pull -Path c:\dsc\DemoPull -Verbose