title: PowerShell: How to install the DSC Resource Kit Wave 8 modules?
body: <p>I am trying to set up a DSC pull server on Windows 2012 R2 machine by following this technet article:</p>
  
  <p><a href="http://technet.microsoft.com/en-us/library/dn249913.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/dn249913.aspx</a></p>
  
  <p>However I just can't get the modules working. The installation instructions says: </p>
  
  <blockquote>
    <p>To install all DSC Resource Kit Modules, unzip the content under </p>
  
  <pre><code>$env:ProgramFiles\WindowsPowerShell\Modules 
  </code></pre>
    
    <p>To confirm installation run <code>Get-DSCResource</code> to see that all of the
    resources on this page are among the DSC Resources listed.</p>
  </blockquote>
  
  <p>So I copied the content of the 'DSC Resource Kit Wave 8 10282014' folder to <code>C:\Program Files\WindowsPowerShell\Modules</code> which now looks as follows:</p>
  
  <pre><code>c:\Program Files\WindowsPowerShell\Modules&gt;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
  [...]
  </code></pre>
  
  <p>Then I restarted my PowerShell console to ensure it's reloading <code>$env:PSModulePath</code> which contains this by the way (added linewrap manually for better readability):</p>
  
  <pre><code>PS C:\Users\Administrator&gt; $env:PSModulePath
  C:\Users\Administrator\Documents\WindowsPowerShell\Modules;
  C:\Program Files\WindowsPowerShell\Modules;
  C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
  </code></pre>
  
  <p>So everything is pretty much default here. However <code>get-module -ListAvailable</code> is just not listening any of the above modules e.g. <code>xPSDesiredStateConfiguration</code>. Also the <code>Get-DscResource</code> cmdlet is not returning any ressources that come with this module (especially <code>xDSCWebService</code> is the DSC resource I am looking for to setup the pull server). </p>
  
  <p>If I manually copy the content of <code>xPSDesiredStateConfiguration\DSCResources\*</code> to one of the modules path folder's I <em>do</em> see the DSC resources. However the pull-server setup script (<code>Sample_xDscWebService.ps1</code>) fails. Opening the editor it shows me a syntax error near to:</p>
  
  <pre><code>Import-DSCResource -ModuleName xPSDesiredStateConfiguration
  </code></pre>
  
  <p>I just can't figure out what I am doing wrong here. So, how can I install the DSC Resource Kit? </p>