title: Get-ADUser not recognized
body: <p>I'm trying to write a script for Powershell that will display the date/time of last login and date/time of last password change for every user and separate the data according to their Organizational Unit within Active Directory.</p>
  
  <p>I'm getting a number of errors, including one that says <code>Get-ADUser</code> isn't even recognized as a command. Any thoughts?  Here's my script:</p>
  
  <pre class="lang-sh prettyprint-override"><code>$my=get-credential
  
  get-aduser -filter "name -like * -searchbase 'OU=students,OU=Users,OU=GBNetworkLabs,DC=gbnetworklabs,DC=local'"
  -properties * -server gbnetworklabs.local -credential $my | select -property name, lastlogondate, passwordlastset
  </code></pre>
  
  <p>I've also tried
  <code>import-module activedirectory</code>
  but get errors with that too.</p>
  
  <p>Here are some of the parameters I've been given:</p>
  
  <blockquote>
    <p>Users='OU=Students,OU=Users,OU=GBNetworkLabs,DC=gbnetworklabs,DC=local'
    Servers='OU=Powershell,OU=VDI,OU=GBNetworkLabs,DC=gbnetworklabs,DC=local'</p>
  </blockquote>
  
  <p>Any and all help is appreciated!  Thank you!</p>