ComputerManagementDsc | DSC resources for for configuration of a Windows computer | Command Line Interface library
kandi X-RAY | ComputerManagementDsc Summary
kandi X-RAY | ComputerManagementDsc Summary
DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ComputerManagementDsc
ComputerManagementDsc Key Features
ComputerManagementDsc Examples and Code Snippets
Community Discussions
Trending Discussions on ComputerManagementDsc
QUESTION
For my learning testlab I have a simple DSC configuration. I am creating VMs and have them running the following ps1 on first startup to rename the system to the VM's name.
...ANSWER
Answered 2021-Mar-02 at 11:19Set-DscLocalConfigurationManager -Path ".\PrepareVM" -Force
QUESTION
I'm having an issue where PowerShell DSC resources are failing to import during a Packer job being run through Azure Pipelines.
Packer indicates an error saying:
...ANSWER
Answered 2020-Mar-13 at 18:50The problem you're seeing is that DSC configs are parsed before any code in the file is run, even before they are loaded into memory. If the modules aren't there before the config script is run then it'll fail. You'll be better off installing those modules before you run the config, probably in a separate Packer step.
QUESTION
I'm new to posting and new to powershell DSC and powershell in general. I'm testing the SqlServiceAccount resource in the SqlServerDsc module and can't figure out how to use the PSCredential Class. My goal is to have the credentials in the variable, but can't figure out how to do this properly. I looked at the example and read the psm1 for the resource on it's github but still lost. Here's the code I'm using to test it, the password as well as other info is in another script being called at the bottom of this script. The window prompting me to input credentials is popping up but I want my credentials placed in the variable to populate this.
...ANSWER
Answered 2018-Jun-06 at 17:56You have a mandatory parameter in your configuration called $ServiceAccountCredential
which you use in your configuration.
But then somewhere in the middle you populate a variable called $Credential
, but you don't use it anywhere. Move that out of the Configuration
definition (it doesn't belong there), and then pass it as the parameter:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ComputerManagementDsc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page