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

 

SOLUTION :

$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 !

Advertisements

Outlook – 2007 Connection Issues

January 29, 2014

I was experiencing an issue with a user having issues after migration of of exchange 2003 to exchange 2010.

When starting outlook 2007 it took 5 minutes before outlook was properly started Sad smile

clip_image002

Outlook was hanging all time.

After getting started on a wrong foot. I was thinking there was something wrong with his profile. After recreating from scratch it did not solve the issue ?

After my search on the net I tried several steps, untill this solved the issue.

It was an Add-on that was bugging me.

In Outlook 2007 go to Tools –> Trust Center –>

Add-ins

clip_image004

Go to Manage COM Add-ins

clip_image006

Disable all Add-ins. But notice that in some case you get this message

image

To solve it start Outlook as Administrator

clip_image008

I restarted and disabled all of them.

YES the problem was solved ! Smile

Now you can test by activating 1 by 1 to see which is giving you a headache.

This approach might apply also for other versions of Outlook.