Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Exchange 2013 - Fails on Import-PSSession

$
0
0

Using Powershell on my Windows 10 machine, with elevated permissions. Running this command

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -Connectio

nUri "Exchanged2013FQDN"; -Authentication Kerberos

Import-PSSession $Session

Which is coming up with this error

Import-PSSession : Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

At line:1 char:1

+ Import-PSSession $Session

+ ~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Import-PSSession], ArgumentOutOfRangeException

+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.ImportPSSessionCommand

No idea why, I'm a bit of a Powershell n00b!

Cheers


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>