How to connect to SharePoint Online from Power Shell?

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

$adminUPN=”dragan@company.onmicrosoft.com”

$orgName=”company”

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

Connect-SPOService -Url https://$orgName-admin.sharepoint.com -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. info@company.com\dragan.todorovic). For Password simply enter you main address password.
  3. IMAP server: outlook.office365.com, Port: 993, Type: SSL\TLS (Accept all certificates)
  4. SMTP: smtp.office365.com, Port: 587, Type: STARTTLS (Accept all certificates)
  5. Check “Require Sign-In
  6. For username set your main email account (eg. info@company.com) 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.