title: Powershell Active Directory Module in Remote Session
body: <p>Hi does anyone have any experience of how to get the Active Directory module to work in a remote ps session?
  Nothing I'm trying seems to work. 
  My remoting between the computers are fine and working and they are joined to a domain. 
  Lets say I do this</p>
  
  <pre><code>$Session = New-PSSession -ComputerName DC01
  Invoke-Command -Session $Session {Import-Module Active Directory}
  WARNING: Error initializing default drive: 'Unable to contact the server. This
  may be because this server does not exist, it is currently down, or it does not
   have the Active Directory Web Services running.'.
  </code></pre>
  
  <p>If I logon to the server directly it works fine. Tried creating a SessionConfiguration also and told it to load the AD module but no luck there either.</p>