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

95 questions
17
votes
4 answers

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\SomeShare\SomeFolder" DestinationPath…
Richard
  • 826
  • 2
  • 8
  • 20
12
votes
2 answers

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?
omencat
  • 225
  • 2
  • 8
9
votes
2 answers

What is different/better about DSC vs "regular" scripting?

I watched a video on ITPro.tv about PowerShell Desired State Configuration DSC. They introduce it, and effectively run a script. However, this was their first (real) introduction of scripting too, so I didn't pick up the difference between DSC and…
9
votes
4 answers

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?
Brettski
  • 942
  • 3
  • 20
  • 30
8
votes
1 answer

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 three problems are these. How does using a public…
Simon Gill
  • 201
  • 2
  • 8
8
votes
1 answer

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 { GroupName = "Administrators" …
Richard
  • 826
  • 2
  • 8
  • 20
7
votes
1 answer

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 Management Framework…
Ameer Deen
  • 3,598
  • 4
  • 25
  • 27
7
votes
3 answers

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 = "12345" } } Configuration MyConfiguration { …
Richard
  • 826
  • 2
  • 8
  • 20
6
votes
2 answers

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 node immediately and without warning. If “false,” the…
Jupaol
  • 273
  • 4
  • 10
6
votes
1 answer

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'm running DSC automatically as part of my deployment…
Jupaol
  • 273
  • 4
  • 10
5
votes
1 answer

Why can't I use a DSC resource in push mode from a module that is installed in my user's module path?

I have a Powershell DSC custom resource, embedded in a module. The full code is available here if you want to see it, but that may not be necessary; my problem isn't (I think) in the code I wrote, but in how to access it. In my case, I'm using DSC…
Micah R Ledbetter
  • 503
  • 1
  • 5
  • 17
5
votes
2 answers

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\SOFTWARE\SomeKey' ValueName =…
Matthias Güntert
  • 2,358
  • 11
  • 38
  • 58
4
votes
1 answer

Can DSC be used to configure IIS on a Windows 10 workstation

I couldn't find this on the interwebs and it seems like a obvious use case to me Is it possible run Windows Desired State Configuration / DSC on a Windows 10 workstation? For example, setting up IIS websites on development machines using DSC in…
KCD
  • 878
  • 3
  • 11
  • 23
4
votes
2 answers

Failure joining on-prem to Azure DSC Automation (Response code: Unauthorized)

I'm having difficulties joining a Windows machine to Azure DSC automation. I'm getting the following error: Registration of the Dsc Agent with the server https://azureserver/accounts/XXXXXXXXXXXXXXXXXXXX failed. The underlying error is: The attempt…
John Doe
  • 93
  • 1
  • 8
4
votes
1 answer

DSC Environment Resource no longer working after WMF5.1 - not detecting PATH values?

I have a number of Partial DSC scripts that use the Environment Resource to set a Path value. I have two scripts that does this and after upgrading from WMF5.0 to WMF5.1, I am getting the following error when Starting the DscConfigurations. VERBOSE:…
Eric
  • 43
  • 2
1
2 3 4 5 6 7