Advertisement
pup_seba

psrp error 1

Mar 18th, 2020
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1. fatal: [172.16.1.99]: FAILED! => {"changed": true, "cmd": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -version 2.0 -NonInteractive -command \". 'C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\Remot
  2. eExchange.ps1'; Connect-ExchangeServer -auto ; get-mailbox\"", "delta": "0:00:03.828137", "end": "2020-03-18 08:10:34.769548", "msg": "non-zero return code", "rc": 1, "start": "2020-03-18 08:10:30.941411", "stderr": "[ansible-e
  3. x.essi.ansible] Connecting to remote server failed with the following error message : A specified logon sessi\r\non does not exist. It may already have been terminated. For more information, see the about_Remote_Troubleshooting
  4. Help\r\n topic.\r\n + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc \r\n eption\r\n + FullyQualifiedErrorId : PSSessionOpenFailed\r\nGetComputerSite :
  5. Exception calling \"GetComputerSite\" with \"0\" argument(s): \"An operations error occurred.\r\n\"\r\nAt C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:164 char:92\r\n+ $localSite=[System.Dir
  6. ectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite <<<< ()\r\n + CategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId : DotNetMethodException\r\n \r\nFindAl
  7. l : Exception calling \"FindAll\" with \"0\" argument(s): \"An operations error occurred.\r\n\"\r\nAt C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:253 char:17\r\n+ $search.FindAll <<<< ()\r\
  8. n + CategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId : DotNetMethodException\r\n \r\nToString : You cannot call a method on a null-valued expression.\r\nAt C:\\Program Fi
  9. les\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:146 char:33\r\n+ $siteName = $siteDN.ToString <<<< ().SubString(3).Split(\",\")[0]\r\n + CategoryInfo : InvalidOperation: (ToString:Str
  10. ing) [], RuntimeException\r\n + FullyQualifiedErrorId : InvokeMethodOnNull\r\n \r\nread-host : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.\r\nAt C:\\Program Files\\Microsoft\
  11. \Exchange Server\\V14\\bin\\ConnectFunctions.ps1:53 char:18\r\n+ $fqdn=read-host <<<< -prompt $ConnectFunctions_LocalizedStrings.res_0001\r\n + CategoryInfo : InvalidOperation: (:) [Read-Host], PSInvalidOpe
  12. rationException\r\n + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ReadHostCommand\r\n \r\nNew-PSSession : Cannot bind parameter 'ConnectionUri'. Cannot convert value \"http:///powershell?serializat
  13. ionLevel=Full\r\n;ExchClientVer=14.3.123.4\" to type \"System.Uri\". Error: \"Invalid URI: The hostname could not be parsed.\"\r\nAt line:1 char:29\r\n+ New-PSSession -ConnectionURI <<<< \"$connectionUri\" -ConfigurationName M
  14. icrosoft.Exchange -SessionOption $so\r\n + CategoryInfo : InvalidArgument: (:) [New-PSSession], ParameterBindingException\r\n + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands
  15. .NewPSSessionCommand\r\n \r\nget-mailbox : The term 'get-mailbox' is not recognized as the name of a cmdlet, function, script file, or operable prog\r\nram. Check the spelling of the name, or if a path was included, verify that
  16. the path is correct and try again.\r\nAt line:1 char:118\r\n+ . 'C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\RemoteExchange.ps1'; Connect-ExchangeServer -auto ; get-mailbox\r\n <<<< \r\n + CategoryInfo
  17. : ObjectNotFound: (get-mailbox:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException", "stderr_lines": ["[ansible-ex.essi.ansible] Connecting to remote server failed with the following
  18. error message : A specified logon sessi", "on does not exist. It may already have been terminated. For more information, see the about_Remote_Troubleshooting Help", " topic.", " + CategoryInfo : OpenError: (System.M
  19. anageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc ", " eption", " + FullyQualifiedErrorId : PSSessionOpenFailed", "GetComputerSite : Exception calling \"GetComputerSite\" with \"0\" argument(s): \"An ope
  20. rations error occurred.", "\"", "At C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:164 char:92", "+ $localSite=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite <<<< ()", " + CategoryInfo : NotSpecified: (:) [], MethodInvocationException", " + FullyQualifiedErrorId : DotNetMethodException", " ", "FindAll : Exception calling \"FindAll\" with \"0\" argument(s): \"An operations error occurred.", "\"", "At C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:253 char:17", "+ $search.FindAll <<<< ()", " + CategoryInfo : NotSpecified: (:) [], MethodInvocationException", " + FullyQualifiedErrorId : DotNetMethodException", " ", "ToString : You cannot call a method on a null-valued expression.", "At C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:146 char:33", "+ $siteName = $siteDN.ToString <<<< ().SubString(3).Split(\",\")[0]", " + CategoryInfo : InvalidOperation: (ToString:String) [], RuntimeException", " + FullyQualifiedErrorId : InvokeMethodOnNull", " ", "read-host : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.", "At C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\ConnectFunctions.ps1:53 char:18", "+ $fqdn=read-host <<<< -prompt $ConnectFunctions_LocalizedStrings.res_0001", " + CategoryInfo : InvalidOperation: (:) [Read-Host], PSInvalidOperationException", " + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ReadHostCommand", " ", "New-PSSession : Cannot bind parameter 'ConnectionUri'. Cannot convert value \"http:///powershell?serializationLevel=Full", ";ExchClientVer=14.3.123.4\" to type \"System.Uri\". Error: \"Invalid URI: The hostname could not be parsed.\"", "At line:1 char:29", "+ New-PSSession -ConnectionURI <<<< \"$connectionUri\" -ConfigurationName Microsoft.Exchange -SessionOption $so", " + CategoryInfo : InvalidArgument: (:) [New-PSSession], ParameterBindingException", " + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.NewPSSessionCommand", " ", "get-mailbox : The term 'get-mailbox' is not recognized as the name of a cmdlet, function, script file, or operable prog", "ram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.", "At line:1 char:118", "+ . 'C:\\Program Files\\Microsoft\\Exchange Server\\V14\\bin\\RemoteExchange.ps1'; Connect-ExchangeServer -auto ; get-mailbox", " <<<< ", " + CategoryInfo : ObjectNotFound: (get-mailbox:String) [], CommandNotFoundException", " + FullyQualifiedErrorId : CommandNotFoundException"], "stdout": "\n Welcome to the Exchange Management Shell!\n\nFull list of cmdlets: Get-Command\nOnly Exchange cmdlets: Get-ExCommand\nCmdlets that match a specific string: Help *<string>*\nGet general help: Help\nGet help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?\nShow quick reference guide: QuickRef\nExchange team blog: Get-ExBlog\nShow full output for a command: <command> | Format-List\n\nTip of the day #10:\n\nThe tilde character (~) should be familiar to Unix users. It represents the shortcut to your root directory. To see what it's evaluated to by default, type:\n\n Dir ~ \n\nYou can use it as a useful shortcut: \n\n Cp SomeFile \"~\\My Documents\"\n\r\nVERBOSE: Connecting to ansible-ex.essi.ansible\nWARNING: No Exchange servers are available in the Active Directory site . Connecting to an Exchange server in another \r\nActive Directory site.\nFailed to connect to an Exchange server in the current site.\nVERBOSE: Connecting to \n", "stdout_lines": ["", " Welcome to the Exchange Management Shell!", "", "Full list of cmdlets: Get-Command", "Only Exchange cmdlets: Get-ExCommand", "Cmdlets that match a specific string: Help *<string>*", "Get general help: Help", "Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?", "Show quick reference guide: QuickRef", "Exchange team blog: Get-ExBlog", "Show full output for a command: <command> | Format-List", "", "Tip of the day #10:", "", "The tilde character (~) should be familiar to Unix users. It represents the shortcut to your root directory. To see what it's evaluated to by default, type:", "", " Dir ~ ", "", "You can use it as a useful shortcut: ", "", " Cp SomeFile \"~\\My Documents\"", "", "VERBOSE: Connecting to ansible-ex.essi.ansible", "WARNING: No Exchange servers are available in the Active Directory site . Connecting to an Exchange server in another ", "Active Directory site.", "Failed to connect to an Exchange server in the current site.", "VERBOSE: Connecting to "]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement