PowerShell – Import-Pssession is not Importing Cmdlets for O365 Exchange Online

August 30, 2017


I noticed that after connecting to O365 Exchange Online using PowerShell, the connection was done OK.

But I could recognize any of the Cmdlets after connecting Sad smile



$LiveCred = Get-Credential -credential "patrick.taels@plastiflex.com"
   $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-Module (Import-PSSession $Session -WarningAction SilentlyContinue -AllowClobber) -Global 


As you can notice you need to add the Import-Module( … –AllowClobber) –Global Command and Parameters …

Enjoy !


MS Exchange – Grant permission to Distribution Groups in the GAL

February 3, 2015

Certain users in the organization where not able to edit (add / remove ) users from a Distribution group in the GAL.

This was the error they say in the Outlook.

“Changes to the public group membership cannot be saved …”


Nevertheless the user itself had Ownership ?


After Googling a bit, it seems that this is a dafault behavior of Exchange 2010 and higher.

So you need to change the Roles & Policies that are connected to the users, using the web ECP.

In order to allow the editing of the a Distribution Group from within Outlook.


Also the Membership Approval settings must be correct.


Next check the security settings via the ADUC on this Distribution Group Object. Make sure that this user has sufficient control.


Some more interesting readings are over here :



You can of course use PowerShell to manage the Distribution Groups

Using : Get-ManagementRole cmdlet

“get-managementrole MyDistributionGroupMembership | get-member”


PowerShell – list MS Exchange Certificates

January 26, 2013

How to list the available certificates on your exchange server, when you run into an event ID 12014 error.

<br>CLS</p> <p># Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010</p> <p># Add Exchange 2010 commandlets (if not added)<br>if(!(Get-PSSnapin | <br>Where-Object {$_.name -eq <br>"Microsoft.Exchange.Management.PowerShell.E2010"})) {<br>ADD-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010<br>}</p> <p>Get-ExchangeCertificate | fl <br>

Output is like this :

AccessRules        : {System.Security.AccessControl.CryptoKeyAccessRule, …
CertificateDomains : {owa.group.com, mail.group.com, autodiscover.group.com}
HasPrivateKey      : True
IsSelfSigned       : False
Issuer             : CN=Trusted SSL CA, O="Trusted, Inc.", C=US
NotAfter           : 3/04/2019 7:53:44
NotBefore          : 1/03/2012 16:25:22
PublicKeySize      : 2048
RootCAType         : ThirdParty
SerialNumber       : 014xxx
Services           : None
Status             : Valid
Subject            : CN=owa.group.com, OU=Group - IT, O=Group, L=Local, …
Thumbprint         : 0AE4D67E3BC6CBA5AFBD3...