To use all cmdlets for Skype, you must install the module, first download from Microsoft:
Click on the .exe file to install
Basically, is Next – Next – Finish
Once the module is installed, open your powershell as administrator.
To Create the session type these lines:
$Cred = Get-Credential
$Session = New-CsOnlineSession -Credential$Cred
NOTE: only the first time delete # in order to uncomment the second line to allow execute scripts. After that, you can comment this line again, is not needed the next time you execute this script to create the session.
Input the credentials to open the session
Once the session is established, the prompt will appear
And, you can type get-CsOnlineUser UserName and you will see all the user properties.
And that’s it. You can start using all cmdlets for Skype online.