Windows PowerShell Desired State Configuration is a tool akin Chef or Puppet, meant to automate keeping Windows servers in a known state.

learn more… | top users | synonyms

1
vote
0answers
24 views

PowerShell DSC +IIS Shared Configuration

I'm trying to set up TFS Release management to deploy to an IIS server that is set up for shared configuration. However, when the deploy is actually run, I get the following error: ##[debug]System....
3
votes
1answer
26 views

How to use AuthenticationInfo in xWebApplication DSC resource

I have the following in my DSC configuration: xWebApplication StaffDirectoryApp { Website = "MySite" Name = "MyApp" WebAppPool = "MyPool" ...
0
votes
0answers
32 views

Terraform: running local-exec commands as admin with vsphere on windows server

I am using terraform with the vsphere provider to provision windows infrastructure in an environment. The local-exec parishioner appears to run my bootstrap commands as a non administration user. This ...
2
votes
1answer
26 views

Why can't DSC find a resource that's installed?

I'm trying to apply a DSC configuration that uses a resource from a module that is installed. However, when I run Start-DscConfiguration, I get this error: The PowerShell DSC resource ******** ...
0
votes
1answer
31 views

Invoke-DscResource against a resource without a module

On the current version of WMF5, I try and invoke a DSC resource using Invoke-DSCResource like so: $destinationPath="$env:SystemDrive\DirectAccess.txt" $fileContents="This file is create by Invoke-...
1
vote
0answers
20 views

dsc local configuration manager email me whenever change occurs

I'm running DSC with ConfigurationMode set to "ApplyAndAutoCorrect" It works fine as it is fixing any issues withing 15 minutes which is default. I would like to get notified by any means whenever ...
0
votes
0answers
9 views

Do nodes in a DSC environment do integrity check for downloaded modules?

I've got a DSC Pull setup, in which a DSC PullServer delivers configurations and modules to nodes automatically over a web interface. All configs and modules have a checksum file for the lcm in the ...
0
votes
1answer
52 views

Azure Resource Manager and Powershell DSC - changes not being applied

I have an ARM template with a Powershell DSC extension section running the following DSC: Configuration Name { Node MachineName { #IIS Role WindowsFeature IIS { ...
1
vote
1answer
265 views

Installing Web Deploy with Desired State Configuration (DSC) silently fails

Absolutely brand new to DSC, so I am really stumbling through things right now. I have a basic configuration that ensures IIS, .NET 4.5, and MSMQ are installed. I am working toward configuring a new ...
3
votes
0answers
158 views

Powershell DSC File copy - Workgroup machines

I've got a machine that I need to copy files to from a network share (on domain) for a deployment from a machine that's off domain. Currently I have the following code; Configuration deployWebsite ...
2
votes
2answers
83 views

High CPU usage observed from WMI provider“deploymentprovider” which is a part of ServerManager.DeploymentProvider.dll

I'm using powerShell Desired State Configuration to test/set Windows Features on server machine. What I have is 78 WindowsFeature resources to be checked and installed if necessary. What I observed is ...
3
votes
1answer
125 views

Variable Network Device Alias and PowerShell DSC

I have a set of Azure Resource Manager and DSC scripts that I use to deploy a new VM to Azure and then make it a domain controller for a new domain, these have worked fine for some time, but it's now ...
1
vote
1answer
171 views

Trigger an update with Azure PowerShell DSC Extension

I'm using the DSC Extension in Azure to configure the VM's and on first deployment that works fine. However, if I've made an error in the DSC script or need to amend it I am having trouble ...
0
votes
1answer
126 views

PowerShell DSC Pull Server with digitally signed module - ErrorDetail is The PS <path to module> is either missing or its associated MOF schema

I've configured a test DSC pull server and I'm attempting to use a digitally signed xPowerShellExecutionPolicy file but I am constantly getting an error stating that the MOF schema file is invalid or ...
1
vote
1answer
73 views

Test impact of DSC script using vNext in Release Management

Following the examples on the web, it's not hard to set up a working example for the first DSC script. However, I need to find a way to just list the changes that the script will make, not actually "...
2
votes
1answer
84 views

Is the file current.mof a bottleneck when using the DSC module?

The msutter DSC module (PowerShell Defined State Configuration) seems to have a bottleneck. Every class that uses a DSC resource generates intermediate Powershell/DSC code that creates a file called ...
1
vote
1answer
514 views

How to apply xNetworking xIPAddress Desired State Configuration (DSC)?

Using Windows Server 2012 R2. The goal is to set the IPv4 address of a server. As DSC correctly states in the verbose message below, the Expected [ip is] 192.168.0.203, [while the] actual [ip is] 192....
1
vote
1answer
248 views

Powershell DSC uses the incorrect certificate file for encryption where node names partially match?

I think there's a bug in the way that DSC chooses the certificate file that is used for credential encryption, such as with the Service resource and a PSCredential. The DSC configuration uses the ...
4
votes
1answer
303 views

Windows Desired State Configuration / DSC: Is there a simple, “flat” way to use them?

The articles all discuss staging, packaging and a bunch of infrastructure aspects. Is it possible to just run the scripts, either locally, or (preferable!) against a remote server? E.g. ...
4
votes
2answers
204 views

WMF 4.0 & DSC on Vista? Any chance?

I am currently evaluating the Microsoft PowerShell Desired State Configuration feature. Unfortunately, my company is still running more then 5000+ Vista clients (and W2003 servers), which seems like ...
3
votes
1answer
184 views

How to do proper error handling in a push setup?

I am currently building a lab environment to get a feeling on what DSC can accomplish and where the limits are. We have a requirement to push out one-shot configurations to group of nodes based on ...
3
votes
1answer
328 views

DSC-Resource: How can I delete a registry key (not value)?

I know I can ensure the presens of a specific registry value by using the following scriptblock: Registry ConfigureRegistry { Ensure = "Present" Key = "HKEY_LOCAL_MACHINE\...
10
votes
2answers
2k views

SSL Certificate management with Powershell DSC

I have a third-party issued certificate that I need to ensure is running on all targets in a given domain. Is there a way to ensure this certificate is installed by way of DSC?
8
votes
1answer
2k views

Protecting credentials in Desired State Configuration using certificates

I'm new to DSC and trying to figure out how to make it work for us. What I'm stuck on is how the credentials are actually protected. My current understanding is that it isn't all that great. The big ...
1
vote
1answer
136 views

no mof generated with composite resource - powershell dsc

I'm having an issue where the .mof file doesn't get generated when using a composite resource in it.The directory gets created fine and no errors are shown. It might be a simple issue to some fresh ...
2
votes
1answer
247 views

Install Exchange 2013 with DSC

I tried to install Exchange 2013 with the resource windowsProcess in existing Exchange Configuration. All prerequisites are installed (the Exchange Organization still exists). This is my Resource ...
1
vote
1answer
556 views

Desired State Config - Script Resource

I'm having some trouble understanding the DSC script resource, in particular the test and get phases. I am trying to change the default Hyper-V VHD and VM paths, but can't seem to work out how to ...
1
vote
0answers
154 views

Installing desktop-experience feature with DSC

I'm running into an issue when utilizing DSC to provision a machine. I'm trying to enable the windows feature 'desktop-experience' and then some others. My configuration looks like this: ...
2
votes
1answer
122 views

Is there a way to generate differences when a server is out of sync with DSC Configuration?

The following command can be used to determine if there has been configuration drift on a system: Test-DscConfiguration –CimSession $session The command only returns true or false. Is there a way ...
7
votes
2answers
499 views

Can a PowerShell DSC configuration file be created from a current system build?

Is there a way to build a PowerShell desired state configuration (DSC) configuration file from a current system? Opposed of building the entire file from scratch?
7
votes
1answer
8k views

Installation of Windows Management Framework 4.0 (Powershell 4.0) on Server 2012 failed

I've been trying to test PowerShell Desired State configuration on a Windows Server 2012 instance on Amazon EC2. I downloaded the Windows Management Framework 4.0 from the MS download center: Windows ...
3
votes
2answers
2k views

Nesting PowerShell DSC configurations from different files

If I nest DSC configurations in a single file like this, it works fine: Configuration Secondary { Param ($SomeParameter) Environment Test { Name = $SomeParameter Value = "...
6
votes
2answers
2k views

How to force DSC to execute all configurations (Packages) even when a restart/reboot is required

From MSDN RebootNodeIfNeeded: Certain configuration changes on a target node might require it to be restarted for the changes to be applied. With the value “true,” this property will restart the ...
6
votes
1answer
948 views

DSC, how to know if after running the configuration a reboot is required

So I'm using DSC Push mode I have about 200 deployments per day to several environments (DEV/INT/QA/PROD) Every time that I deploy I want to make sure that each server is configured correctly So I'...
6
votes
1answer
2k views

PowerShell DSC Group Resource - “Could not find a principal with the provided name”

I am trying to use PowerShell DSC to add a domain group to the local administrators group. Here is the code: Configuration TestSetup { Node localhost { Group Administrators { ...
12
votes
4answers
6k views

PowerShell DSC copy from network share

I am trying to use PowerShell DSC to copy folder contents from a network share. Here is the code: Configuration TestSetup { Node localhost { File Test { SourcePath = "\\Server\...
1
vote
1answer
183 views

powershell 4.0: Desired State Configuration requirements for remote clients

The whole DSC framework looks awesome, but I'm curious about the requirements of the remote machines. I create a custom MOF file and apply it to remove machines with Start-DscConfiguration (I'm ...
2
votes
1answer
303 views

How do I install Microsoft Exchange 2013 with Microsoft Powershell DSC?

We are working on a new build procedure. As a proof of concept, I wanted to install an Exchange 2013 server with CAS and Hub roles. I cannot find documentation on just how to do that. Has anyone ...
3
votes
1answer
1k views

How do I debug Powershell Desired State Configuration not generating MOF files?

I'm following the most basic example on MSDN and I'm failing to get it to work. I've got my configuration defined as follows: Configuration MyWebConfig { Param($ComputerName) Node $...