Questions tagged [dsc]

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

Introduced with PowerShell 4.0. MSDN documentation on DSC: http://technet.microsoft.com/en-us/library/dn249912.aspx

96 questions
2
votes
1 answer

Is it possible to manage Server Manager Properties through PowerShell DSC?

For example: Server Manager → Manage → Server Manager Properties "Do not Start manager automatically at logon" Server Manager → Local Server → IE Enhanced Security Configuration → Off
mark
  • 725
  • 3
  • 15
  • 32
2
votes
1 answer

When using Azure Automation DSC is it possible to install a product on a non SSD drive if the latter exists?

Suppose I have a product which I want to install on a non SSD drive, if exists. Otherwise, I want it to go on the drive C. For example, the following configuration is supposed to install the Sql Server 2016 in the default location: Configuration…
mark
  • 725
  • 3
  • 15
  • 32
2
votes
1 answer

DSC Syntax for Binary Registry Key

What should be a simple registry DSC configuration has turned into a somewhat frustrating piece of guesswork. I'm trying to setting a binary registry key. I am finding it impossible to find the right format for the value data to get the key set…
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114
2
votes
0 answers

DSC Environment resource failing to see environment variable it has set

I'm using DSC to provision virtual machines. The VMs are setup to pull a DSC configuration from a pull server. All is well with this. However, I noticed that I am frequently seeing: Job {8B376B76-EDE7-11E6-80FC-3649808F2EC1} : From LCM, message…
Peter McEvoy
  • 146
  • 5
2
votes
1 answer

How to create a Hyper-V VM with Powershell DSC and module xHyper-V?

I've been trying to create a VM on my Hyper-V 2016 host from my Windows 10 workstation using module xHyper-V with not a lot of joy. My Hyper-V host is called Lithium and my DSC Script is below. Configuration EndToEndXHyperV_RunningVM { param …
Mark Allison
  • 2,188
  • 7
  • 26
  • 45
2
votes
1 answer

How to install DSC on Azure Windows 2016 Nano Server deployed from Microsoft's image?

All information I could find regarding DSC on Nano Server suggest the DSC should be added to the server image upon creation, e.g. Using DSC on Nano Server: DSC on Nano Server is an optional package in the NanoServer\Packages folder of the Windows…
techraf
  • 4,243
  • 8
  • 29
  • 44
2
votes
1 answer

Installing MS SQL Express / Management Tools with Chocolatey fails under Azure Automation DSC

I am trying to use cChoco module to provision a few packages with Azure Automation DSC on Windows Server 2016 virtual machines (SKU: 2016-Datacenter). Some packages (e.g. vcredist2008, vcredist2010) Chocolatey (called from DSC) installs them…
techraf
  • 4,243
  • 8
  • 29
  • 44
2
votes
1 answer

Powershell DSC - Info 1625. This installation is forbidden by system policy

I'm using the Powershell Desired State Configuration to set up a server. The server needs a SQL Client msi installed. As a logged in user, I'm able to click the msi, and install it with no problems. However, when I attempt to install it through…
Black Dynamite
  • 523
  • 2
  • 5
  • 16
2
votes
1 answer

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 Windows 2012 R2 instance to support our…
Matt
  • 3,241
  • 9
  • 30
  • 33
2
votes
2 answers

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 high CPU usage while LCM ( Local Configuration…
2
votes
1 answer

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 current.mof in the same directory. When I run…
Paul Chernoch
  • 155
  • 1
  • 6
2
votes
1 answer

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 wrong CertificateFile from the AllNodes collection…
Robin M
  • 453
  • 2
  • 8
  • 14
2
votes
1 answer

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 section: WindowsProcess Exchange2013 { …
2
votes
1 answer

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 to retrieve a list of what those differences are?
Brettski
  • 942
  • 3
  • 20
  • 31
2
votes
1 answer

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 tried this? I've seen examples for Windows Server…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148