Tag Archive: powershell

sync

Import Azure AD Sync PowerShell Cmdlets

Can’t find the old DirSync PS1 file to start PowerShell with cmdlets for Azure AD Sync? We can now Import the Azure AD Sync Module like any other real PS module I asked my dear friends Bing and Google, but they…
Read more

Azure Active Directory

, , , , , , ,

sync

DirSync Installation Error PowerShell

The minimum Version of Windows PowerShell required is 2,0. Please install the minimum Version required (or higher) and try again. Today I was installing DirSync for a customer With a brand New Windows Server 2021 R2, which includes PowerShell 2,0…
Read more

Azure Active Directory

, , , , , ,

Powershell

PS Script: AAD or AD?

Complementing the PS Script by choosing either AAD or AD to hold Your Security Group and Memberships. [code language=”powershell”] #Azure Active Directory Import-Module MSOnline Connect-MsolService #Find ObjectId of every Security Group $Groups = Get-MsolGroup | Select ObjectId,DisplayName $ExchangeGroupObjectId = $Groups…
Read more

Azure Active Directory

, , , , , , , , ,

Powershell

PS Script: Assign license based on AAD Security Group

So, just to make it easy, here is the Exchange Online assigning script without using it for Unlicensed Users only. AAD Security Group Name: Exchange_Users See earlier post for pre reqs and information.

 

Azure Active Directory, Office 365

, , , , , , , , , , , , ,

Powershell

PS Script: Assign Exchange Online licenses based on AAD Security Group

Same script edited to assign Exchange Online instead of Lync Online. AAD Security Group Name: Exchange_Users Same pre reqs and more information in my earlier post. [code language=”powershell”] <# .SYNOPSIS Script that assigns Office 365 licenses based on Group membership…
Read more

Azure Active Directory, Exchange Online

, , , , , , , , , , , , , ,

Powershell

PS Script: Assign license based on WAAD Security Group

A lot of customers buy Package of Plans within Office 365, like Enterprise or MidSize. These Package of License Plans are just build up With the single Plans, but they don’t work the same way when assigning the Licenses With…
Read more

Azure Active Directory, Office 365

, , , , , , , , , , ,

Powershell

PS: Script license assigning for Office 365

Wanted to share a script for assigning Licenses to Office 365 Users based on Security Groups in Your local Active Directory.  

  ———————————————————————- You will find all the Licenses With this PS Command: Get-MsolAccountSku | Where-Object {$_.SkuPartNumber -eq…
Read more

Office 365

, , , , , , , , , , , , , , , , ,

Powershell

Username greyed out in Office 365 Admin Center

Problem: You created a Cloud User and gave it the vanity domain in the UserName, and later you federate that domain, but this user isn’t from Your Active Directory. So ofcourse the login will fail for this user. As long…
Read more

Office 365

, , , , , , ,

ADFS3logo

No snap-ins have been registered for Windows PowerShell version X

For some reasons we have to use PowerShell against Our AD FS Service and normally we could use Add-PSSnapin Microsoft.Adfs.PowerShell, but this isn’t available allways and in Windows Server 2012 R2 we are running PowerShell v4. Not all Snap-ins or…
Read more

Azure

, , , , , , , , , ,

Powershell

PowerShell: Forward email to external recipient

The solution can sometimes be to forward all inncoming email, and some times to an external or internal address. Incase of beeing external address, we need to create a contact in our Addresslist: New-MailContact -Name <Display Name> -ExternalEmailAddress <External Recipient…
Read more

Exchange Online

, , , , , , ,