Hello Team
My most of the scripts are available in the cas server . Iam trying to run a script from the mailbox server, means
running the script via remote power shell.
Am getting the below error, any mistake i did below
PS C:\Users\administrator.LABBITES> $uc=Get-Credential
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\Users\administrator.LABBITES> $session=New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri http://i
ndlbmb01.labbbites.co.in/powershell/ -Authentication kerberos -Credential $uc
[indlbmb01.labbbites.co.in] Connecting to remote server failed with the following error message : WinRM cannot process
the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or us
e HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information,
see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
eption
ramakrishnan