Kamis, 24 November 2016

Simple powershell for Skype for Business

To connect to Skype for Business online:
  • Import-Module LyncOnlineConnector
    $credential = Get-Credential
    $session = New-CsOnlineSession -Credential $credential
    Import-PSSession $session

To check user SIP address:
  • Get-CsOnlineuser -Identity "username@domain.com" |fl *sip*

Rabu, 02 November 2016

Send on Behalf of in Powershell Exchange 2013

Below are the command to Grant Send on Behalf of a user in Exchange 2013:
set-mailbox MailboxName -GrantSendOnbehalfto ‘Username

To check Send on Behalf of use this command:
Get-Mailbox Mailboxname | fl displayname, GrantSendOnBehalfTo