Skip to content

Instantly share code, notes, and snippets.

@Pyromaniaxxx
Created June 26, 2014 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pyromaniaxxx/11ce05815860b652b3bb to your computer and use it in GitHub Desktop.
Save Pyromaniaxxx/11ce05815860b652b3bb to your computer and use it in GitHub Desktop.
Lync Online に接続する PowerShell
$user = “hogehoge@hoge.onmicrosoft.com”
$pass = “pass”
$CTSS = ConvertTo-SecureString $pass -AsPlainText -Force
$PSC = New-Object System.Management.Automation.PsCredential($user, $CTSS)
$O365LyncCred = Get-Credential -Credential $PSC
Import-Module LyncOnlineConnector
$LyncSession = New-CsOnlineSession -Credential $O365LyncCred
Import-PSSession $LyncSession
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment