How to connect to SharePoint Online from Power Shell?

Install-Module -Name Microsoft.Online.SharePoint.PowerShell



$userCredential = Get-Credential -UserName $adminUPN -Message “Type the password.”

Connect-SPOService -Url https://$ -Credential $userCredential

How to setup Shared mailbox from Exchange Online on Android mail client?

First of all, it will be IMAP connection, don`t try to use wizards for Exchange or Office 365, simply it won`t work.

  1. Open you mail client and select IMAP as account type
  2. For “E-mail adress” field use you shared e-mail address. Username should be you main address\shared (eg.\dragan.todorovic). For Password simply enter you main address password.
  3. IMAP server:, Port: 993, Type: SSL\TLS (Accept all certificates)
  4. SMTP:, Port: 587, Type: STARTTLS (Accept all certificates)
  5. Check “Require Sign-In
  6. For username set your main email account (eg. and password for this account
  7. Confirm!

Push declined due to email privacy restrictions error for GitHub sync in Visual Studio Code

If you have experienced Visual Studio Code at least for simple script editing and tried to connect to GitHub as source control, probably you had a problem with sync because of this error in log output:

remote rejected] master -> master (push declined due to email privacy restrictions)

Fix: Simply uncheck “Block command line pushes that expose my email” box in your email settings and then pushing again.