title: How to import an external DSC module into PowerShell environment?
body: <p>I have Windows 10 / Windows 2016 TP5 (PowerShell 5.1). I want to use a PowerShell DSC module from GitHub in my configuration, for example <a href="https://github.com/PowerShell/xTimeZone" rel="nofollow">xTimeZone</a>.</p>
  
  <p>What shall I do to be able to reference it with <code>Import-DSCResource</code>?</p>
  
  <p>It's the first time I try to add a module other than from an installer-based product and maybe I am missing something obvious. Isn't there a <code>git clone</code>-based procedure like <code>pip</code> or <code>gem</code> utilise?</p>
  
  <hr>
  
  <p>I verified the value of <code>$env:PSModulePath</code> and it has two directories defined: <code>C:\Users\techraf\Documents\WindowsPowerShell\Modules;C:\Windows\system32\W
  indowsPowerShell\v1.0\Modules</code>.</p>
  
  <p>I copied the contents of <a href="https://github.com/PowerShell/xTimeZone/tree/dev/DSCResources/xTimeZone" rel="nofollow">xTimeZone</a> directory to <code>C:\Users\techraf\Documents\WindowsPowerShell\Modules</code>.</p>
  
  <p>PowerShell does not see it. Tried to copy on different levels of the repository - all failed.</p>
  
  <hr>
  
  <p>When running the <a href="https://github.com/PowerShell/xTimeZone/blob/dev/Example/SetTimeZone.ps1" rel="nofollow">example</a> script I get:</p>
  
  <pre><code>At line:12 char:4
  +    Import-DSCResource -ModuleName xTimeZone
  +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Could not find the module 'xTimeZone'.
  At line:16 char:9
  +         xTimeZone TimeZoneExample
  +         ~~~~~~~~~
  Undefined DSC resource 'xTimeZone'. Use Import-DSCResource to import the resource.
      + CategoryInfo          : ParserError: (:) [], ParseException
      + FullyQualifiedErrorId : ModuleNotFoundDuringParse
  </code></pre>
  
  <hr>
  
  <p>Per advice from the answer, after moving the module from <code>C:\Users\techraf\Documents\WindowsPowerShell\Modules</code> to <code>C:\Windows\system32\W
  indowsPowerShell\v1.0\Modules</code> the first error disappeared and I get only:</p>
  
  <pre><code>At line:16 char:9
  +         xTimeZone TimeZoneExample
  +         ~~~~~~~~~
  Undefined DSC resource 'xTimeZone'. Use Import-DSCResource to import the resource.
      + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
      + FullyQualifiedErrorId : ResourceNotDefined
  </code></pre>