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
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
4
votes
1 answer

Enable-PSRemoting or Set-WSManQuickConfig?

I'm getting pumped up for DSC and I want to cover my bases. I see that Enable-PSRemoting actually runs Set-WSManQuickConfig according to help documentation, I guess my main question is, what is the difference between the two? Looks like newer…
evenyougreg
  • 85
  • 1
  • 6
4
votes
1 answer

Powershell DSC: Could not get the http stream

I have a Powershell DSC I am using to configure a web server. My server will need the URL Rewrite module, so I've gotten that code from a Github gist found at: https://gist.github.com/sheastrickland/646c42789ce2df35d5c8 My issue is that when the…
Black Dynamite
  • 523
  • 2
  • 5
  • 16
4
votes
1 answer

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 { param ( [string[]] $MachineName =…
atownsend
  • 41
  • 2
4
votes
1 answer

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 failing the DSC part. I believe the issue is down…
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114
4
votes
1 answer

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. infrastructure-free, like I can run ssh commands now?
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
4
votes
2 answers

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 a big show stopper when it comes to WMF 4.0. I am…
Matthias Güntert
  • 2,438
  • 12
  • 39
  • 59
4
votes
1 answer

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 criterias like operating system, AD group membership…
Matthias Güntert
  • 2,438
  • 12
  • 39
  • 59
3
votes
1 answer

Is it possible to download a file using a Powershell DSC resource from Azure File storage account?

I have a file in an Azure File storage. I would like to download it using a DSC resource (xRemoteFile, for example). The Azure File storage gives me an HTTPS url to that file, but it is not directly usable: EDIT 1 Using SAS: Next I am trying to…
mark
  • 725
  • 3
  • 15
  • 32
3
votes
1 answer

DSC pull schedule randomly stops working

I am using DSC to configure 30 servers. They are configured to pull with ApplyAndAutoCorrect. This generally works great, but randomly, servers will stop all DSC activity. The servers never attempt to pull configuration again. The only way I…
gregpakes
  • 111
  • 8
3
votes
2 answers

Investigating Sysvol replication issues when promoting domain controllers with DSC in Azure

We're using PowerShell DSC to automate the deployment of a number of small self contained environments, in these environments we are deploying 2 domain controllers and use DSC to setup the domain etc. This is all working fine except for the fact…
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114
3
votes
2 answers

Set-AzureRmAutomationModule is unable to find Automation Account

I am trying to upload a custom DSC module to our Azure Automation account. C:\Code\Epitec DSC [master ≡ +1 ~1 -1 !]> Set-AzureRmAutomationModule -Name "WindowsUpdate" -ContentLinkUri "{ContentURL}.zip" -ResourceGroupName "OI-Default-East-US"…
Lloyd Smith
  • 231
  • 3
  • 9
3
votes
2 answers

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 ******** does not exist at the PowerShell module path nor is it…
splattered bits
  • 928
  • 3
  • 11
  • 23
3
votes
1 answer

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 $ComputerName { WindowsFeature MyRoleExample { …
skolima
  • 1,263
  • 3
  • 16
  • 28
2
votes
1 answer

DSC Resource for SSL and TLS and Ciphers

I need to ensure that servers have been properly configured to prevent the usage of SSL2/3 and TLS1.0/1.1 and ensure that only TLS1.2 is enabled. In addition I need to ensure that certain ciphers are enabled/disabled to meet PCI/HIPAA…
Bozojoe
  • 637
  • 1
  • 6
  • 17