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

I am trying to set up a DSC Offload Server on a Windows 2012 R2 machine by following the following technical article:

http://technet.microsoft.com/en-us/library/dn249913.aspx

However, I just can't seem to get the modules to work. The installation instructions state:

To install all modules of the DSC Resource Kit, extract the content into

$env:ProgramFiles\WindowsPowerShell\Modules 

      

To confirm the launch of the installation Get-DSCResource

, to see that all resources on this page refer to the listed DSC resources.

So, I copied the contents of the "DSC Resource Kit Wave 8 10282014" folder into C:\Program Files\WindowsPowerShell\Modules

which now looks like this:

c:\Program Files\WindowsPowerShell\Modules>tree
├───cFileShare
│   ├───DSCResources
│   │   ├───VSAR_cCreateFileShare
│   │   └───VSAR_cSetSharePermissions
│   ├───Examples
│   ├───ResourceDesignerScripts
│   └───Unit Tests
├───xActiveDirectory
│   ├───DSCResources
│   │   ├───MSFT_xADDomain
│   │   ├───MSFT_xADDomainController
│   │   ├───MSFT_xADDomainTrust
│   │   ├───MSFT_xADUser
│   │   └───MSFT_xWaitForADDomain
│   └───Misc
├───xAdcsDeployment
│   ├───DSCResources
│   │   ├───MSFT_xAdcsCertificationAuthority
│   │   └───MSFT_xAdcsWebEnrollment
│   └───xCertificateServices
│       ├───DSCResources
│       │   ├───MSFT_xAdcsCertificationAuthority
│       │   └───MSFT_xAdcsWebEnrollment
│       └───Examples
[...]

      

Then I restarted the PowerShell console to reload $env:PSModulePath

which contains this by the way (added linewrap line for better readability):

PS C:\Users\Administrator> $env:PSModulePath
C:\Users\Administrator\Documents\WindowsPowerShell\Modules;
C:\Program Files\WindowsPowerShell\Modules;
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

      

Thus, everything here is invalid by default. However, get-module -ListAvailable

none of the above modules are simply listening, for example. xPSDesiredStateConfiguration

... Also, the cmdlet Get-DSCResource

does not return any of the resources that come with this module (especially the xDSCWebService

DSC resource I am looking for to configure the unload server).

If I manually copy the content xPSDesiredStateConfiguration\DSCResources\*

to one of the pod folders, I see the DSC resources. However, the installation of the pull-server script ( Sample_xDscWebService.ps1

) fails. Opening the editor, it shows a syntax error next to:

Import-DSCResource -ModuleName xPSDesiredStateConfiguration

      

I just can't figure out what I am doing wrong here. So how can I install the DSC Resource Kit?

+3


source to share


3 answers


This issue seems to be related to some missing patches. Unfortunately, I don't know which one. The blog post link below mentions KB2883200. But installing it on my system made no difference.

However, it works on another fully patched Windows 2012 R2 server. Unfortunatley I don't have easy access to work to fix my manually installed server to the latest version.



http://blogs.msdn.com/b/powershell/archive/2013/12/26/holiday-gift-desired-state-configuration-dsc-resource-kit-wave-1.aspx

0


source


I had the same problem. After installing 3 updates (KB2894029, KB2894179 and KB2883200) everything works;)



+3


source


I had this error and it has been fixed!
See my blog post http://tfl09.blogspot.com//2015/04/using-dsc-resource-kit-hot-fixes-may-be.html

This place indicates the required fixes.

0


source







All Articles