How Do You Install Windows DSC on Windows Server 2019?

Problem scenario
You are running Windows Server 2019. You want to install Windows DSC. What do you do?

Solution

  1. Open PowerShell.
  2. Run this command: Install-Module 'PSDscResources' -Verbose
  3. When prompted with this question "NuGet provider is required to continue…", choose "Yes".
  4. If you believe your Windows Server is in a secure environment, or you have no goals putting sensitive data on your Windows server, when prompted about an "Untrusted repository", specifically "Are you sure you want to install the modules from 'PSGallery'?", choose "Yes".

Leave a comment

Your email address will not be published.