web services - How to run a Powershell DSC script locally -
i'm trying run simple powershell dsc script locally. (i never plan on pulling or pushing configuration files @ stage)
i following error message. ws-management service running, there no firewall holes or ports reserved (server happens webserver)... there anyway can allow server accept local requests?
the client cannot connect destination specified in request. verify service on destination running , accepting requests. consult logs , documentation ws-management service running on destination, commonly iis or winrm. if destination winrm service, run following command on destination analyze , configure winrm service: "winrm quickconfig". + categoryinfo : connectionerror: (root/microsoft/...gurationmanager:string) [], cimexception + fullyqualifiederrorid : hresult 0x80338012 + pscomputername : localhost
configuration sampleiisinstall { node 127.0.0.1 { file filedemo { type = 'directory' destinationpath = 'c:\testuser3' ensure = "present" } } } # compile configuration file mof format sampleiisinstall # run configuration on localhost start-dscconfiguration -path .\sampleiisinstall -wait -force -verbose
try:
configuration sampleiisinstall { node "localhost" { file filedemo { type = 'directory' destinationpath = 'c:\testuser3' ensure = "present" } } } # compile configuration file mof format sampleiisinstall # run configuration on localhost start-dscconfiguration -path .\sampleiisinstall -wait -force -verbose
Comments
Post a Comment