dsc

Configuring HKEY_CURRENT_USER with DSC Resource actually updates HKEY_USERS\.DEFAULT

送分小仙女□ 提交于 2019-12-24 01:53:22
问题 The following DSC declaration writes to Registry key HKEY_USERS.DEFAULT\Console instead of HKEY_CURRENT_USER\Console. Why? Registry ConsoleFaceName { Key = 'HKEY_CURRENT_USER\Console' ValueName = "FaceName" ValueData = "Lucida Console" Ensure = "Present" } 回答1: The behavior of writing to .DEFAULT is because the DSC Local Configuration Manager (LCM) is running as local system, which does not have a current user registry hive. If you want it to update a particular user you need to run using

Unattended install of .net framework 4.6.2 using DSC

我只是一个虾纸丫 提交于 2019-12-24 00:25:26
问题 I'm trying to install 4.6.2 on a number of servers in an automated way (no implementation of WSUS or otherwise). My goal was to leverage PowerShell DSC as we are configuring other aspects that way. However, the resources I've tried (xHotfix from xWindowsUpdate and xPackage from xPSDesiredStateConfiguration) have failed. xHotfix says the downloaded files are invalid (from https://support.microsoft.com/en-us/kb/3151800) and the native Package and xPackage resources require a ProductId...which

Using Ansible to execute Powershell DSC

一个人想着一个人 提交于 2019-12-23 20:05:25
问题 My end goal is to configure AdcsCertificationAuthority on a Server 2016 Server using Ansible. - name: Install ADCS with sub features and management tools win_feature: name: Adcs-Cert-Authority state: present include_management_tools: yes register: win_feature - name: reboot if installing Adcs-Cert-Authority feature requires it win_reboot: when: win_feature.reboot_required - name: Add ActiveDirectoryCSDsc win_psmodule: name: ActiveDirectoryCSDsc state: present - name: Configure

PowerShell DSC - how to pass configuration parameters to ScriptResources?

北战南征 提交于 2019-12-20 09:48:54
问题 I'm having a lot of trouble trying to get a PowerShell Desired State Configuration script working to configure an in-house application. The root of the problem is that I can't seem to pass my configuration data down into a ScriptResource (at least not with the way I'm trying to do it). My script is supposed to create a config folder for our in-house application, and then write some settings into a file: configuration MyApp { param ( [string[]] $ComputerName = $env:ComputerName ) node

How do you automatically distribute Desired State Configuration custom resources as part of a deployment?

人走茶凉 提交于 2019-12-19 15:02:07
问题 I'm working on leveraging Microsoft's DSC Resource Kit (specifically, XWebAdministration, at least for starters). I'm relatively familiar with DSC, so no worries on the script's actual functionality... it does what it's supposed to, or at least I'm pretty sure it does. The problem is that when I execute the script from my orchestration box, the servers I'm targeting return this error: The PowerShell provider xWebAdministration does not exist at the PowerShell module path nor is it registered

How do you automatically distribute Desired State Configuration custom resources as part of a deployment?

吃可爱长大的小学妹 提交于 2019-12-19 15:01:24
问题 I'm working on leveraging Microsoft's DSC Resource Kit (specifically, XWebAdministration, at least for starters). I'm relatively familiar with DSC, so no worries on the script's actual functionality... it does what it's supposed to, or at least I'm pretty sure it does. The problem is that when I execute the script from my orchestration box, the servers I'm targeting return this error: The PowerShell provider xWebAdministration does not exist at the PowerShell module path nor is it registered

PowerShell: How to install the DSC Resource Kit Wave 8 modules?

纵饮孤独 提交于 2019-12-19 09:28:09
问题 I am trying to set up a DSC pull server on Windows 2012 R2 machine by following this technet article: http://technet.microsoft.com/en-us/library/dn249913.aspx However I just can't get the modules working. The installation instructions says: To install all DSC Resource Kit Modules, unzip the content under $env:ProgramFiles\WindowsPowerShell\Modules To confirm installation run Get-DSCResource to see that all of the resources on this page are among the DSC Resources listed. So I copied the

Passing Parameter Values to DSC Configuration from ARM Template

核能气质少年 提交于 2019-12-12 23:04:33
问题 I have a simple DSC Config file that contains a credential and string input parameter. I want this DSC configuration deployed with a VM deployed in an ARM template but am missing the concept of how to pass these two parameters securely. How do I accomplish this? 回答1: I was receiving the same error but, after some shenanigans, it is working for me. The important part is the settings/Properties/SqlAgentCred/password reference to protectedSettings/Items/AgentPassword . Below is the properties

DSC problems with Credentials and build 10586

有些话、适合烂在心里 提交于 2019-12-12 18:06:44
问题 The latest windows 10 build pushed out an updated version of powershell (10586). In addition to the change required for the certificate documented at https://dscottraynsford.wordpress.com/2015/11/15/windows-10-build-10586-powershell-problems/ i seem to have an additional problem, while trying to apply the configuration: WarningMessage An error occured while applying the partial configuration [PartialConfiguration]ExternalIntegrationConfiguration. The error message is : Decryption failed..

Why can I not configure TFS Build Service in unattend mode via Powershell DSC?

做~自己de王妃 提交于 2019-12-12 15:07:48
问题 With the following DSC configuration (snippet of the resources section only, cut out preamble, diagnostics, and Start-DscConfiguration parts for SO): Package TFSServer2013 { Name = "Microsoft Team Foundation Server 2013 Update 3 (x64)" Path = '$InstallerPath\Team Foundation Server 2013\tfs_server.exe' Arguments = "/quiet" Credential = $Credential Ensure = "Present" ProductID = "B516BA7C-3C20-3FCC-B130-B42058ABF87A" } File TFSUserFile { DestinationPath = "$Env:TEMP\TFSConfig\TfsUserName.clixml