- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2015 12:19 PM
Hi Chris,
Thanks for response. I am trying to run below query:
powershell.exe Invoke-Command -ComputerName XXXXXX -ConfigurationName ServiceNow -ScriptBlock {Get-Command}
When I am trying to run this command using remote server, I am getting below error:
Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
While trying to run with 127.0.0.1, I am getting below error:
Invoke-Command : Cannot bind parameter 'ScriptBlock'. Cannot convert the"-encodedCommand" value of type "System.String" to type"System.Management.Automation.ScriptBlock".At line:1 char:100+ ... ame ServiceNow -ScriptBlock -encodedCommandRwBlAHQALQBTAHQAbwBwAHAAZQBkAFMAZQBy ...+ ~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], ParameterBindingException+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeCommandCommand
I would prefer to run this on MID Server and I am able to manually execute the command from the MID Server. But not working when I am trying using Workflow( We don't have Orchestration Enabled).
Any suggestion, how can I make it run on MID Server.
Regards,
ND