Hi, I try to connect from local PS in domain to Exchange server (i login as a domain admin)
$exch= New-PSSession -ComputerName Exch1 -credential Administrator@test.local
Enter-PSSession $exch
Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010
RemoteExchange.ps1
try run simple cmdlets Get-ServerComponentState and got a error
Active Directory operation failed on . The supplied credential for 'Test\Administrator' is invalid.
+ CategoryInfo : NotSpecified: (:) [], ADInvalidCredentialException
+ FullyQualifiedErrorId : [Server=Exch1,RequestId=6aa66c9b-077d-4496-ba26-a29414a03ffb,TimeStamp=24.04.2015 18:31:06] [FailureCategory
=Cmdlet-ADInvalidCredentialException] B91C65D4
Classic way -
$session=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://YourMailServer/powershell -Credential (Get-Credential)
and Import-PSSession $session
all works properly. Does it mean, that such "hard" connection as i tried is unsupported?
- Edited by Alex Karavai 11 hours 41 minutes ago