Hello,
I am trying to create mail-contacts (Organizational contacts) using ps-session on NIE tenant using csv loops, I can create/update some chunks without any issue.
I have set timeout, execution policy, sleep time etc to overcome this issue, below is the error I receive.
Basically thread breaks during the process, I cant catch that exception and that breaks ps-session as well, gives pop up for entering creds for office 365 admin account.
=================================================================================
Processing data from remote server outlook.office365.com failed with the following error message: WinRM cannot complete the operation. Verify that the specified
computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this
computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the
about_Remote_Troubleshooting Help topic. + CategoryInfo : OperationStopped: (outlook.office365.com:String) [], PSRemotingTransportException + FullyQualifiedErrorId : JobFailure + PSComputerName : outlook.office365.com Cannot invoke the pipeline because the runspace is not in the Opened state. Current state of the runspace is 'Broken'. + CategoryInfo : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [], InvalidRunspaceStateException
Processing data from remote server outlook.office365.com failed with the following error message: WinRM cannot complete the operation. Verify that the specified
computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this
computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the
about_Remote_Troubleshooting Help topic. + CategoryInfo : OperationStopped: (outlook.office365.com:String) [], PSRemotingTransportException + FullyQualifiedErrorId : JobFailure + PSComputerName : outlook.office365.com Cannot invoke the pipeline because the runspace is not in the Opened state. Current state of the runspace is 'Broken'. + CategoryInfo : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [], InvalidRunspaceStateException + FullyQualifiedErrorId : InvalidSessionState,outlook.office365.com + FullyQualifiedErrorId : InvalidSessionState,outlook.office365.com