Skip to content

Blogs Created by Daag van der Meer

O365 – Powershell connect once

Because I’m testing I made this, so I dont need to fill in everytime the credentials, but checks if there is a connection.

AzureAD Connect

if($azureConnection.Account -eq $null){
$azureConnection = Connect-AzureAD
}

MSO Connect Check

if( $credential -eq $null){
$credential = Get-Credential
Connect-MsolService -Credential $credential
}

Author Daag van der MeerPosted on January 8, 2021January 8, 2021Categories Uncategorized

Post navigation

Previous Previous post: Disable Password Expiration Azure AD
Next Next post: O365 – Change default security settings

Recent Posts

  • Microsoft RoadMap
  • Topdesk create LDAPS certificate From DC
  • HP Smart Scan with VPN Connected.
  • Clasic Sticky notes to New Stickynotes
  • Teams MeetingRoom

Archives

  • March 2022
  • October 2021
  • September 2021
  • August 2021
  • April 2021
  • January 2021
  • December 2020
  • September 2020
  • July 2020
  • March 2020
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • July 2018
  • June 2018
  • May 2018
  • March 2018
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • February 2017
  • December 2016

Categories

  • Active Directory
  • Barracuda Spamfilter
  • Domoticz
  • Exchange
  • Fritzbox
  • GPO
  • Hardware
  • Java
  • Landesk
  • Links
  • Linux
  • MDT
  • Microsoft
  • MS-Dos Scripts
  • Outlook 2010
  • Outlook 2013
  • Powershell Script
  • PSTools
  • Raspberry
  • Registry key
  • SCCM
  • SNMP
  • SQL
  • Synology
  • Uncategorized
  • VB script
  • VMware
  • VPN
  • Windows
  • Windows 10
  • Windows 7
  • Windows Server 2012R2
Blogs Created by Daag van der Meer Proudly powered by WordPress