title: Get-CsUser error powershell
body: <p>I am running this command in powershell   <code>Get-CsUser</code> and i am getting the following error</p>
  
  <pre><code>Get-CsUser : The term 'Get-CsUser' is not recognized as the name of a
  cmdlet, function, script file, or operable program. Check the spelling
  of the name, or if a path was included, verify that the path is
  correct and try again. At line:1 char:1
  + Get-CsUser
  + ~~~~~~~~~~
       + CategoryInfo          : ObjectNotFound: (Get-CsUser:String) [], CommandNotFoundException
       + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>What do I have to do to avoid this error? I have imported:</p>
  
  <pre><code>Import-Module "C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnector.psd1"
  </code></pre>
  
  <p>and then made connection to Office 365 Skype for business service with the following script: </p>
  
  <pre><code>$credential = Get-Credential
  Import-Module MSOnline
  Connect-MsolService -Credential $credential
  Import-Module SkypeOnlineConnector
  $lyncSession = New-CsOnlineSession -Credential $credential
  Import-PSSession $lyncSession
  </code></pre>
  
  <p>Does anyone knows what's the cause of this error? </p>