Jump to content

Recommended Posts

Posted

I'm using the import-csv command to create new mailboxes however when I run the Ps1 the routine errors at new-mailbox command saying that its not a valid command?????

Low and behold when I search the list of available commands it is not there. Has anyone else had this problem???

 

I going to reinstall powershell and hope that cures it, but would be interested to know...

Posted

Have you tried adding the following to the top of your PowerShell script so that it loads the Exchange cmdlets? More details here.

 

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://[color="#FF0000"]FQDN of Exchange 2013 Client Access Server[/color]/PowerShell/ -Authentication Kerberos
Import-PSSession $Session

 

or

 

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://[color="#FF0000"]FQDN of Exchange 2013 Client Access Server[/color]/PowerShell/ -Authentication Kerberos -Credential $UserCredential
Import-PSSession $Session

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...