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

SSL Certificate management with Windows 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?
neo
  • 3
  • 3
0
votes
1 answer

Resize-Partition errors after first execution in DSC script

I'm trying to use the following piece of code in a powershell DSC script. It runs fine on first execution but on following executions it throws an error as it's already expanded. Here's the command: $MaxSize = (Get-PartitionSupportedSize…
John Fox
  • 310
  • 4
  • 15
0
votes
1 answer

DSC SMB Pullserver - clients are unable to locate mof file

I have configured the LCM of my target node like this: [DSCLocalConfigurationManager()] configuration SMBPullClientConfig { param ( [PARAMETER(Mandatory=$false)] $NodeName = 'localhost', [PARAMETER(Mandatory=$true)] $GUID, …
Tom
  • 1
0
votes
1 answer

Installing Module during OSD Task Sequence from NuGet not found

I have an OSD task sequence which one of the steps runs a package containing the PowerShell DSC '.ps1' file and the '.MOF' configuration. Now during the task sequence it looks like it can't find the Modules I want to install on the NuGet provider…
0
votes
0 answers

Applying PowerShell Desired State Configuration to Windows host from Linux control machine

I'm interested in using my Linux work machine to apply DSC configuration to Windows machines. I can find lots about using DSC to manage Linux, but that isn't what I'm interested in, I want to use it to manage Windows, but from on Linux. Ideally I'd…
TSip
  • 1
  • 1
0
votes
1 answer

What Installtion is needed before desired state configuration can be used?

I want to know what is installed on a bare mental machine (real or virtual) to allow it to be further configured by DSC. All the demos I have seen already have "something" installed on the target so it can have more things installed with DSC. What…
PEC
  • 1
0
votes
1 answer

Is it possible to ensure a certain schedule for the windows updates on a Windows Server 2016 using Powershell DSC?

Part of configuration is to run all the Windows Updates. I am trying to figure out how to express it with Powershell DSC. Seems like the best is to ensure that the windows updates are scheduled regularly. I found xWindowsUpdateAgent DSC resource,…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

Is Azure Automation DSC at all suitable for configuring client machines (not servers)?

I am trying to create a DSC configuration for a developer workstation and facing difficulties. A developer machine has a well defined owner - the developer who is going to get it. Some configurations tightly coupled to the owner account: It should…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

How to install SSMS on a client workstation using Azure Automation DSC?

I found the following post - https://blogs.msdn.microsoft.com/troy_aults_blog/2017/01/13/automating-installation-of-ssms-with-dsc/ Great, all I need to know now is the Product Id of SSMS-Setup-ENU.exe, right? But how, on Earth, am I supposed to do…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

Is it possible to keep all the DSC configurations in Version Control and make Azure Automation fetch it from there automatically?

The Azure Automation DSC seems to know to integrate with GitHub, but it seems to expect only runbooks there. At least, this is what I understand from the following UI screen: I have just started to learn DSC and have no runbooks. So far I only used…
mark
  • 725
  • 3
  • 15
  • 32
0
votes
1 answer

Passing arguments to Set-AzureRmVmDscExtension

I'm trying to pick up a passed-in argument to a PowerShell DSC configuration fired by Set-AzureRmVMDscExtension and not having much luck. The idea is to have a xRemoteFile section download a file at a URL in the arguments. The URL is in…
Elomis
  • 313
  • 1
  • 2
  • 13
0
votes
1 answer

Desired State for MsSQL and IIS (puppet or chef)

In our infrastructure, some developers/consultants change some mssql or iis configurations without any notification which cause us problems. For example, if somebody change mssql recovery simple to full our backup agent cannot take any backup. I…
Emre
  • 33
  • 3
0
votes
1 answer

Server configuration management

We have windows servers hosting our software. There is a third party company doing something like penetration testing and provides us with reports and recommendations about the servers' setup/configuration. Right now we add all servers in a…
mynkow
  • 101
  • 2
0
votes
1 answer

Desired State Configuration HTTPS Pull Site Doesn't Work

I've created a domain certificate for my DSC web pull server (issued by my internal CA) and retrieved the thumbprint. I exported the certificate from inetmgr and installed it on the pull server (both local machine and user). I then put the…
0
votes
1 answer

Get-DscResource not returning full list when run from Jenkins on Windows

I have a Windows Server 2016 Jenkins build box. I want to run some powershell in a Jenkins job. As a test I have set the job to do this in a Execute Windows batch command build step: powershell -command Get-DscResource -module xhyper-v I get this…
Mark Allison
  • 2,188
  • 7
  • 26
  • 45