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
1
vote
1 answer

Manage Group Policy across multiple domains

I am looking for a way to manage Group Policy across a number of domains, some in the same forest and others in separate forests. I haven't seen this done before and can't find anything around the DevOps space to say it could be done via DSC or some…
Laywah
  • 99
  • 7
1
vote
1 answer

DSC not pulling config

my DSC node is not pulling the DSC config from my SMB DSC server. Get-DSCConfigurationStatus says the pull was successfull but Get-DSCConfiguration remains the same(old config). Im testing it with a HelloWorld config where a file is created on the C…
seyo -IV
  • 43
  • 7
1
vote
0 answers

DSC switching back to push

Hi there i got a small problem. I have configured a node to pull the config from my HTTP DSC server. But once it pulls its config the node switched back to push. My node config looks like this: [DSCLocalConfigurationManager()] configuration…
seyo -IV
  • 43
  • 7
1
vote
1 answer

Powershell DSC composite resource, partial configuration, or roles. What's the best approach that's maintainable?

I'm having a little bit of a hard to trying to decipher what the best approach is when creating configurations based off Powershell DSC. It appears that partial configurations are meant to allow multiple people/teams create configurations for their…
Matt
  • 175
  • 2
  • 10
1
vote
1 answer

Only include a CertReq in a PowerShell DSC if needed

I'm currently using the CertificateDSC CertReq resource to generate a certificate request within a DSC configuration. I'm pretty new to DSC, I'm checking it out using a push approach and my workflow consists of generating the mof and either running…
Seth
  • 247
  • 2
  • 14
1
vote
1 answer

How to assign a static IP to linux host using Powershell DSC / Lability?

Setup: I am using Lability to deploy a hacking lab consisting of 3 virtual machines. One of the machines is Kali Linux. How could I automatically set a static IP for the Kali when it is first deployed from the script? Problem: Lability has very…
1
vote
1 answer

Puppet unable to add user to AD group

I'm trying to add user to group on my DC using puppet: dsc_xgroup {'DomainAdministrators': dsc_ensure => 'present', dsc_memberstoinclude => 'tfl@ad.contoso.com', dsc_groupname => 'test', …
tim
  • 11
  • 1
1
vote
1 answer

How to Use PowerShell DSC to Keep Services on Windows Server Running?

I've recently noticed that our Windows Server 2016 VMs on Azure sometimes fail to start some of their services after rebooting the system (for example ADFS, Remote Desktop Broker and others) even though they're set to Automatic and I've set the…
1
vote
0 answers

PowerShell JEA RoleDefinitions Trusted Domain

This one may be a bit tricky, and may not be possible. I have a PowerShell JEA endpoint configured in my DSC. It runs fine. The trouble is the users that are listed in the RoleDefinitions section of the JeaEndpoint section are in a different domain…
1
vote
1 answer

Manual PowerShell DSC module installation

I am working on servers without access to the Internet. I am uploading DSC modules to the server, E.g. AccessControlDSC. The modules are being installed in c:\Program Files\WindowsPowerShell\Modules I unzip AccessControlDSC into the modules folder…
Brettski
  • 942
  • 3
  • 20
  • 31
1
vote
1 answer

How to use DSC to install .NET windows feature on a non server machine?

Observe the following DSC configuration: Configuration Example { Import-DscResource –ModuleName PSDesiredStateConfiguration node localhost { WindowsFeature 'NetFramework45' { Name =…
mark
  • 725
  • 3
  • 15
  • 32
1
vote
1 answer

How to automatically deploy a new resource from Azure Automation to DSC nodes?

Scenario: I have a Windows 10 workstation on-boarded to Azure Automation (AA). It is configured to pull configuration from AA correctly - checked. I wish to install Sql Server 2016 Developer edition on that workstation. I imported the SqlServerDsc…
mark
  • 725
  • 3
  • 15
  • 32
1
vote
0 answers

Configuring NICs on Windows safely in DSC or Puppet

We've been using DSC basically since its day 1 release, but one thing we've never been able to do successfully (either by direct plain DSC or via invoking DSC via puppet) is configure Windows networking in a way that doesn't cause major issues when…
Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
1
vote
1 answer

How do ARM projects in Visual Studio upload their DSC (and other) assets?

I've worked with ARM templates a bit but building ARM projects in Visual Studio is new. When you create VM resources and then subsequently create a script or DSC extension, in addition to the new JSON, Powershell changes are made, but the next run…
Elomis
  • 313
  • 1
  • 2
  • 13
1
vote
1 answer

Azure DSC validation error on portal

Any ideas on the cause value for the template parameter 'modulesUrl' at line '11' and column '20' is not provided returned when validating a new VM in the Azure Portal with the DSC extension. It's no help knowing that some underlying template has…
tobyd
  • 471
  • 1
  • 3
  • 12