set-mailcontact and powershell_ise

Hi all,
sorry for my english . I have trouble with command set-mailcontact . If I try run this command from powershell_ise :
Set-MailContact : No provisioning handler is installed.
in the powershell scripts I have
add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
if I try run from powershell for exchange , that works ok  ...  What I add to powershell to correct run ?
thank yo
March 24th, 2015 10:02am

Hi Falcon,

You need to add the following cmdlet before running EMS cmdlet in PowerShell.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://ExchangeServerFQDN/PowerShell/ -Authentication Kerberos
import-pssession $session

Hope this can be helpful to you.

Best regards,

Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 3:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics