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

PowerShell DSC fails to create application pool with xWebAdminstration

At the moment we are trying to setup an application pool using PowerShell DSC (WMF5.0) and the xWebAdminstration (v1.15) module. We have, so far, managed to get the client node and pull server to work together successfully using the instruction from…
sduplooy
  • 111
  • 4
1
vote
1 answer

Is Windows Nano Server a Client SKU?

I've been experimenting with running Powershell DSC on Windows Server 2016 Nano (TP 5). When I run the configuration, I get the following error: PowerShell DSC resource MSFT_xWindowsFeature failed to execute Test-TargetResource functionality with…
NickRamirez
  • 165
  • 1
  • 9
1
vote
1 answer

PowerShell DSC +IIS Shared Configuration

I'm trying to set up TFS Release management to deploy to an IIS server that is set up for shared configuration. However, when the deploy is actually run, I get the following error: ##[debug]System.Exception: Filename:…
kettch
  • 287
  • 1
  • 3
  • 11
1
vote
2 answers

Invoke-DscResource against a resource without a module

On the current version of WMF5, I try and invoke a DSC resource using Invoke-DSCResource like so: $destinationPath="$env:SystemDrive\DirectAccess.txt" $fileContents="This file is create by Invoke-DscResource" $result = Invoke-DscResource -Name File…
Trondh
  • 4,201
  • 24
  • 27
1
vote
0 answers

dsc local configuration manager email me whenever change occurs

I'm running DSC with ConfigurationMode set to "ApplyAndAutoCorrect" It works fine as it is fixing any issues withing 15 minutes which is default. I would like to get notified by any means whenever correction occurs. Only other options for…
Claudius
  • 123
  • 6
1
vote
1 answer

Azure Resource Manager and Powershell DSC - changes not being applied

I have an ARM template with a Powershell DSC extension section running the following DSC: Configuration Name { Node MachineName { #IIS Role WindowsFeature IIS { Name = “Web-Server” Ensure =…
AdsWhite
  • 15
  • 2
1
vote
1 answer

Trigger an update with Azure PowerShell DSC Extension

I'm using the DSC Extension in Azure to configure the VM's and on first deployment that works fine. However, if I've made an error in the DSC script or need to amend it I am having trouble understanding how to force the VM to download the new…
Sam Cogan
  • 38,736
  • 6
  • 78
  • 114
1
vote
1 answer

Test impact of DSC script using vNext in Release Management

Following the examples on the web, it's not hard to set up a working example for the first DSC script. However, I need to find a way to just list the changes that the script will make, not actually "make it so". The challange that I have is that the…
1
vote
1 answer

How to apply xNetworking xIPAddress Desired State Configuration (DSC)?

Using Windows Server 2012 R2. The goal is to set the IPv4 address of a server. As DSC correctly states in the verbose message below, the Expected [ip is] 192.168.0.203, [while the] actual [ip is] 192.168.0.205 The following error…
user2704504
  • 11
  • 1
  • 3
1
vote
1 answer

no mof generated with composite resource - powershell dsc

I'm having an issue where the .mof file doesn't get generated when using a composite resource in it.The directory gets created fine and no errors are shown. It might be a simple issue to some fresh eyes, but I'm not seeing it :) The composite…
SimonS
  • 11
  • 1
1
vote
1 answer

Desired State Config - Script Resource

I'm having some trouble understanding the DSC script resource, in particular the test and get phases. I am trying to change the default Hyper-V VHD and VM paths, but can't seem to work out how to validate those via DSC scripts. I usually use the…
Garrett Dumas
  • 287
  • 2
  • 9
1
vote
0 answers

Installing desktop-experience feature with DSC

I'm running into an issue when utilizing DSC to provision a machine. I'm trying to enable the windows feature 'desktop-experience' and then some others. My configuration looks like this: Configuration Workstation { Node WSTest { …
Peter
  • 11
  • 2
1
vote
1 answer

powershell 4.0: Desired State Configuration requirements for remote clients

The whole DSC framework looks awesome, but I'm curious about the requirements of the remote machines. I create a custom MOF file and apply it to remove machines with Start-DscConfiguration (I'm simplifying the process a bit)- now do those remote…
red888
  • 4,183
  • 18
  • 64
  • 111
1
vote
2 answers

Compare state of Windows Server 2022 VSphere instances

Apologies for the noob question regarding Windows and VSphere. I am looking to solve a problem in my current organization where we never seem to know the current state of our servers due to too many people being able to log in and make changes.…
1
vote
0 answers

Is it possible to write a PowerShell DSC configuration that waits for a manual installation?

I would like to use DSC to check and correct Service resources as State = Running. The issue is that these services don't exist until I have manually run a software installer on the target node. I am already using DSC to prepare the node for…
NReilingh
  • 484
  • 3
  • 9
  • 24