winrm 2.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +10 -10
- data/.rubocop.yml +26 -26
- data/.travis.yml +11 -11
- data/Gemfile +3 -3
- data/README.md +260 -233
- data/Rakefile +34 -34
- data/Vagrantfile +6 -6
- data/WinrmAppveyor.psm1 +31 -31
- data/appveyor.yml +51 -51
- data/changelog.md +104 -101
- data/lib/winrm.rb +39 -39
- data/lib/winrm/connection.rb +83 -82
- data/lib/winrm/connection_opts.rb +91 -91
- data/lib/winrm/exceptions.rb +76 -76
- data/lib/winrm/http/response_handler.rb +96 -96
- data/lib/winrm/http/transport.rb +424 -424
- data/lib/winrm/http/transport_factory.rb +68 -68
- data/lib/winrm/output.rb +59 -59
- data/lib/winrm/psrp/create_pipeline.xml.erb +167 -167
- data/lib/winrm/psrp/fragment.rb +70 -70
- data/lib/winrm/psrp/init_runspace_pool.xml.erb +224 -224
- data/lib/winrm/psrp/message.rb +130 -130
- data/lib/winrm/psrp/message_data.rb +42 -42
- data/lib/winrm/psrp/message_data/base.rb +49 -49
- data/lib/winrm/psrp/message_data/error_record.rb +68 -68
- data/lib/winrm/psrp/message_data/pipeline_host_call.rb +32 -32
- data/lib/winrm/psrp/message_data/pipeline_output.rb +49 -49
- data/lib/winrm/psrp/message_data/pipeline_state.rb +40 -40
- data/lib/winrm/psrp/message_data/runspacepool_host_call.rb +32 -32
- data/lib/winrm/psrp/message_data/runspacepool_state.rb +39 -39
- data/lib/winrm/psrp/message_data/session_capability.rb +36 -36
- data/lib/winrm/psrp/message_defragmenter.rb +62 -62
- data/lib/winrm/psrp/message_factory.rb +75 -75
- data/lib/winrm/psrp/message_fragmenter.rb +60 -60
- data/lib/winrm/psrp/powershell_output_decoder.rb +139 -139
- data/lib/winrm/psrp/receive_response_reader.rb +97 -97
- data/lib/winrm/psrp/session_capability.xml.erb +7 -7
- data/lib/winrm/psrp/uuid.rb +40 -40
- data/lib/winrm/shells/base.rb +180 -175
- data/lib/winrm/shells/cmd.rb +65 -65
- data/lib/winrm/shells/power_shell.rb +202 -202
- data/lib/winrm/shells/retryable.rb +45 -45
- data/lib/winrm/shells/shell_factory.rb +58 -50
- data/lib/winrm/version.rb +7 -7
- data/lib/winrm/wsmv/base.rb +59 -59
- data/lib/winrm/wsmv/cleanup_command.rb +61 -61
- data/lib/winrm/wsmv/close_shell.rb +50 -50
- data/lib/winrm/wsmv/command.rb +101 -101
- data/lib/winrm/wsmv/command_output.rb +76 -76
- data/lib/winrm/wsmv/command_output_decoder.rb +55 -55
- data/lib/winrm/wsmv/configuration.rb +46 -46
- data/lib/winrm/wsmv/create_pipeline.rb +66 -66
- data/lib/winrm/wsmv/create_shell.rb +119 -119
- data/lib/winrm/wsmv/header.rb +203 -203
- data/lib/winrm/wsmv/init_runspace_pool.rb +95 -95
- data/lib/winrm/wsmv/iso8601_duration.rb +60 -60
- data/lib/winrm/wsmv/keep_alive.rb +68 -68
- data/lib/winrm/wsmv/receive_response_reader.rb +126 -126
- data/lib/winrm/wsmv/send_data.rb +68 -68
- data/lib/winrm/wsmv/soap.rb +51 -51
- data/lib/winrm/wsmv/wql_query.rb +79 -79
- data/lib/winrm/wsmv/write_stdin.rb +88 -88
- data/tests/integration/auth_timeout_spec.rb +18 -18
- data/tests/integration/cmd_spec.rb +131 -110
- data/tests/integration/config-example.yml +16 -16
- data/tests/integration/issue_59_spec.rb +26 -26
- data/tests/integration/powershell_spec.rb +165 -165
- data/tests/integration/spec_helper.rb +65 -65
- data/tests/integration/transport_spec.rb +99 -99
- data/tests/integration/wql_spec.rb +16 -16
- data/tests/matchers.rb +60 -60
- data/tests/spec/configuration_spec.rb +184 -184
- data/tests/spec/connection_spec.rb +39 -39
- data/tests/spec/exception_spec.rb +50 -50
- data/tests/spec/http/transport_factory_spec.rb +68 -68
- data/tests/spec/http/transport_spec.rb +44 -44
- data/tests/spec/output_spec.rb +127 -127
- data/tests/spec/psrp/fragment_spec.rb +62 -62
- data/tests/spec/psrp/message_data/base_spec.rb +13 -13
- data/tests/spec/psrp/message_data/error_record_spec.rb +41 -41
- data/tests/spec/psrp/message_data/pipeline_host_call_spec.rb +25 -25
- data/tests/spec/psrp/message_data/pipeline_output_spec.rb +32 -32
- data/tests/spec/psrp/message_data/pipeline_state_spec.rb +40 -40
- data/tests/spec/psrp/message_data/runspace_pool_host_call_spec.rb +25 -25
- data/tests/spec/psrp/message_data/runspacepool_state_spec.rb +16 -16
- data/tests/spec/psrp/message_data/session_capability_spec.rb +30 -30
- data/tests/spec/psrp/message_data_spec.rb +35 -35
- data/tests/spec/psrp/message_defragmenter_spec.rb +47 -47
- data/tests/spec/psrp/message_fragmenter_spec.rb +105 -105
- data/tests/spec/psrp/powershell_output_decoder_spec.rb +100 -100
- data/tests/spec/psrp/psrp_message_spec.rb +70 -70
- data/tests/spec/psrp/recieve_response_reader_spec.rb +172 -172
- data/tests/spec/psrp/uuid_spec.rb +28 -28
- data/tests/spec/response_handler_spec.rb +61 -61
- data/tests/spec/shells/base_spec.rb +202 -202
- data/tests/spec/shells/cmd_spec.rb +75 -75
- data/tests/spec/shells/powershell_spec.rb +175 -175
- data/tests/spec/spec_helper.rb +47 -47
- data/tests/spec/stubs/clixml/error_record.xml.erb +84 -84
- data/tests/spec/stubs/clixml/pipeline_state.xml.erb +88 -88
- data/tests/spec/stubs/responses/get_command_output_response.xml.erb +13 -13
- data/tests/spec/stubs/responses/get_command_output_response_not_done.xml.erb +10 -10
- data/tests/spec/stubs/responses/get_powershell_keepalive_response.xml.erb +10 -10
- data/tests/spec/stubs/responses/get_powershell_output_response.xml.erb +12 -12
- data/tests/spec/stubs/responses/get_powershell_output_response_not_done.xml.erb +9 -9
- data/tests/spec/stubs/responses/open_shell_v1.xml +19 -19
- data/tests/spec/stubs/responses/open_shell_v2.xml +20 -20
- data/tests/spec/stubs/responses/soap_fault_v1.xml +36 -36
- data/tests/spec/stubs/responses/soap_fault_v2.xml +42 -42
- data/tests/spec/stubs/responses/wmi_error_v2.xml +41 -41
- data/tests/spec/wsmv/cleanup_command_spec.rb +22 -22
- data/tests/spec/wsmv/close_shell_spec.rb +17 -17
- data/tests/spec/wsmv/command_output_decoder_spec.rb +37 -37
- data/tests/spec/wsmv/command_output_spec.rb +45 -45
- data/tests/spec/wsmv/command_spec.rb +19 -19
- data/tests/spec/wsmv/configuration_spec.rb +17 -17
- data/tests/spec/wsmv/create_pipeline_spec.rb +31 -31
- data/tests/spec/wsmv/create_shell_spec.rb +38 -38
- data/tests/spec/wsmv/init_runspace_pool_spec.rb +36 -36
- data/tests/spec/wsmv/keep_alive_spec.rb +21 -21
- data/tests/spec/wsmv/receive_response_reader_spec.rb +123 -123
- data/tests/spec/wsmv/send_data_spec.rb +30 -30
- data/tests/spec/wsmv/wql_query_spec.rb +13 -13
- data/tests/spec/wsmv/write_stdin_spec.rb +22 -22
- data/winrm.gemspec +42 -42
- metadata +2 -2
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
#
|
|
3
|
-
# Copyright 2016 Shawn Neal <sneal@sneal.net>
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
require_relative 'transport'
|
|
18
|
-
|
|
19
|
-
module WinRM
|
|
20
|
-
module HTTP
|
|
21
|
-
# Factory for creating a HTTP transport that can be used for WinRM SOAP calls.
|
|
22
|
-
class TransportFactory
|
|
23
|
-
# Creates a new WinRM HTTP transport using the specified connection options.
|
|
24
|
-
# @param connection_opts [ConnectionOpts|Hash] The connection ConnectionOpts.
|
|
25
|
-
# @return [HttpTransport] A transport instance for making WinRM calls.
|
|
26
|
-
def create_transport(connection_opts)
|
|
27
|
-
transport = connection_opts[:transport]
|
|
28
|
-
validate_transport!(transport)
|
|
29
|
-
send "init_#{transport}_transport", connection_opts
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
private
|
|
33
|
-
|
|
34
|
-
def init_negotiate_transport(opts)
|
|
35
|
-
HTTP::HttpNegotiate.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def init_kerberos_transport(opts)
|
|
39
|
-
HTTP::HttpGSSAPI.new(opts[:endpoint], opts[:realm], opts, opts[:service])
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def init_plaintext_transport(opts)
|
|
43
|
-
HTTP::HttpPlaintext.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
def init_ssl_transport(opts)
|
|
47
|
-
if opts[:basic_auth_only]
|
|
48
|
-
HTTP::BasicAuthSSL.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
49
|
-
elsif opts[:client_cert]
|
|
50
|
-
HTTP::ClientCertAuthSSL.new(opts[:endpoint], opts[:client_cert],
|
|
51
|
-
opts[:client_key], opts[:key_pass], opts)
|
|
52
|
-
else
|
|
53
|
-
HTTP::HttpNegotiate.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def validate_transport!(transport)
|
|
58
|
-
valid = private_methods
|
|
59
|
-
.select { |m| m.to_s.start_with?('init_') && m.to_s.end_with?('_transport') }
|
|
60
|
-
.map { |tm| tm.to_s.split('_')[1] }
|
|
61
|
-
|
|
62
|
-
unless valid.include?(transport.to_s)
|
|
63
|
-
raise WinRM::InvalidTransportError.new(transport, valid)
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright 2016 Shawn Neal <sneal@sneal.net>
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require_relative 'transport'
|
|
18
|
+
|
|
19
|
+
module WinRM
|
|
20
|
+
module HTTP
|
|
21
|
+
# Factory for creating a HTTP transport that can be used for WinRM SOAP calls.
|
|
22
|
+
class TransportFactory
|
|
23
|
+
# Creates a new WinRM HTTP transport using the specified connection options.
|
|
24
|
+
# @param connection_opts [ConnectionOpts|Hash] The connection ConnectionOpts.
|
|
25
|
+
# @return [HttpTransport] A transport instance for making WinRM calls.
|
|
26
|
+
def create_transport(connection_opts)
|
|
27
|
+
transport = connection_opts[:transport]
|
|
28
|
+
validate_transport!(transport)
|
|
29
|
+
send "init_#{transport}_transport", connection_opts
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
private
|
|
33
|
+
|
|
34
|
+
def init_negotiate_transport(opts)
|
|
35
|
+
HTTP::HttpNegotiate.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def init_kerberos_transport(opts)
|
|
39
|
+
HTTP::HttpGSSAPI.new(opts[:endpoint], opts[:realm], opts, opts[:service])
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def init_plaintext_transport(opts)
|
|
43
|
+
HTTP::HttpPlaintext.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def init_ssl_transport(opts)
|
|
47
|
+
if opts[:basic_auth_only]
|
|
48
|
+
HTTP::BasicAuthSSL.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
49
|
+
elsif opts[:client_cert]
|
|
50
|
+
HTTP::ClientCertAuthSSL.new(opts[:endpoint], opts[:client_cert],
|
|
51
|
+
opts[:client_key], opts[:key_pass], opts)
|
|
52
|
+
else
|
|
53
|
+
HTTP::HttpNegotiate.new(opts[:endpoint], opts[:user], opts[:password], opts)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def validate_transport!(transport)
|
|
58
|
+
valid = private_methods
|
|
59
|
+
.select { |m| m.to_s.start_with?('init_') && m.to_s.end_with?('_transport') }
|
|
60
|
+
.map { |tm| tm.to_s.split('_')[1] }
|
|
61
|
+
|
|
62
|
+
unless valid.include?(transport.to_s)
|
|
63
|
+
raise WinRM::InvalidTransportError.new(transport, valid)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
data/lib/winrm/output.rb
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
# encoding: UTF-8
|
|
2
|
-
#
|
|
3
|
-
# Copyright 2014 Max Lincoln <max@devopsy.com>
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
module WinRM
|
|
18
|
-
# This class holds raw output and has convenience methods to parse.
|
|
19
|
-
class Output
|
|
20
|
-
def initialize
|
|
21
|
-
@data = []
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
# @return [Integer] exitcode returned from command
|
|
25
|
-
attr_reader :exitcode
|
|
26
|
-
|
|
27
|
-
# @return [String] Aggregated stdout and stderr streams
|
|
28
|
-
def output
|
|
29
|
-
@data.flat_map do |line|
|
|
30
|
-
[line[:stdout], line[:stderr]]
|
|
31
|
-
end.compact.join
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# @return [String] stdout stream output
|
|
35
|
-
def stdout
|
|
36
|
-
@data.map do |line|
|
|
37
|
-
line[:stdout]
|
|
38
|
-
end.compact.join
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# @return [String] stderr stream output
|
|
42
|
-
def stderr
|
|
43
|
-
@data.map do |line|
|
|
44
|
-
line[:stderr]
|
|
45
|
-
end.compact.join
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Sets the exitcode
|
|
49
|
-
def exitcode=(code)
|
|
50
|
-
raise WinRM::InvalidExitCode unless code.is_a? Integer
|
|
51
|
-
@exitcode = code
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# Appends stream data to the output
|
|
55
|
-
def <<(data)
|
|
56
|
-
@data << data
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
1
|
+
# encoding: UTF-8
|
|
2
|
+
#
|
|
3
|
+
# Copyright 2014 Max Lincoln <max@devopsy.com>
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
module WinRM
|
|
18
|
+
# This class holds raw output and has convenience methods to parse.
|
|
19
|
+
class Output
|
|
20
|
+
def initialize
|
|
21
|
+
@data = []
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# @return [Integer] exitcode returned from command
|
|
25
|
+
attr_reader :exitcode
|
|
26
|
+
|
|
27
|
+
# @return [String] Aggregated stdout and stderr streams
|
|
28
|
+
def output
|
|
29
|
+
@data.flat_map do |line|
|
|
30
|
+
[line[:stdout], line[:stderr]]
|
|
31
|
+
end.compact.join
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# @return [String] stdout stream output
|
|
35
|
+
def stdout
|
|
36
|
+
@data.map do |line|
|
|
37
|
+
line[:stdout]
|
|
38
|
+
end.compact.join
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @return [String] stderr stream output
|
|
42
|
+
def stderr
|
|
43
|
+
@data.map do |line|
|
|
44
|
+
line[:stderr]
|
|
45
|
+
end.compact.join
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Sets the exitcode
|
|
49
|
+
def exitcode=(code)
|
|
50
|
+
raise WinRM::InvalidExitCode unless code.is_a? Integer
|
|
51
|
+
@exitcode = code
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Appends stream data to the output
|
|
55
|
+
def <<(data)
|
|
56
|
+
@data << data
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
<Obj RefId="0">
|
|
2
|
-
<MS>
|
|
3
|
-
<Obj N="PowerShell" RefId="1">
|
|
4
|
-
<MS>
|
|
5
|
-
<Obj N="Cmds" RefId="2">
|
|
6
|
-
<TN RefId="0">
|
|
7
|
-
<T>System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
|
|
8
|
-
<T>System.Object</T>
|
|
9
|
-
</TN>
|
|
10
|
-
<LST>
|
|
11
|
-
<Obj RefId="3">
|
|
12
|
-
<MS>
|
|
13
|
-
<S N="Cmd">Invoke-expression</S>
|
|
14
|
-
<B N="IsScript">false</B>
|
|
15
|
-
<Nil N="UseLocalScope" />
|
|
16
|
-
<Obj N="MergeMyResult" RefId="4">
|
|
17
|
-
<TN RefId="1">
|
|
18
|
-
<T>System.Management.Automation.Runspaces.PipelineResultTypes</T>
|
|
19
|
-
<T>System.Enum</T>
|
|
20
|
-
<T>System.ValueType</T>
|
|
21
|
-
<T>System.Object</T>
|
|
22
|
-
</TN>
|
|
23
|
-
<ToString>None</ToString>
|
|
24
|
-
<I32>0</I32>
|
|
25
|
-
</Obj>
|
|
26
|
-
<Obj N="MergeToResult" RefId="5">
|
|
27
|
-
<TNRef RefId="1" />
|
|
28
|
-
<ToString>None</ToString>
|
|
29
|
-
<I32>0</I32>
|
|
30
|
-
</Obj>
|
|
31
|
-
<Obj N="MergePreviousResults" RefId="6">
|
|
32
|
-
<TNRef RefId="1" />
|
|
33
|
-
<ToString>None</ToString>
|
|
34
|
-
<I32>0</I32>
|
|
35
|
-
</Obj>
|
|
36
|
-
<Obj N="MergeError" RefId="7">
|
|
37
|
-
<TNRef RefId="1" />
|
|
38
|
-
<ToString>None</ToString>
|
|
39
|
-
<I32>0</I32>
|
|
40
|
-
</Obj>
|
|
41
|
-
<Obj N="MergeWarning" RefId="8">
|
|
42
|
-
<TNRef RefId="1" />
|
|
43
|
-
<ToString>None</ToString>
|
|
44
|
-
<I32>0</I32>
|
|
45
|
-
</Obj>
|
|
46
|
-
<Obj N="MergeVerbose" RefId="9">
|
|
47
|
-
<TNRef RefId="1" />
|
|
48
|
-
<ToString>None</ToString>
|
|
49
|
-
<I32>0</I32>
|
|
50
|
-
</Obj>
|
|
51
|
-
<Obj N="MergeDebug" RefId="10">
|
|
52
|
-
<TNRef RefId="1" />
|
|
53
|
-
<ToString>None</ToString>
|
|
54
|
-
<I32>0</I32>
|
|
55
|
-
</Obj>
|
|
56
|
-
<Obj N="Args" RefId="11">
|
|
57
|
-
<TNRef RefId="0" />
|
|
58
|
-
<LST>
|
|
59
|
-
<Obj RefId="12">
|
|
60
|
-
<MS>
|
|
61
|
-
<S N="N">-Command</S>
|
|
62
|
-
<Nil N="V" />
|
|
63
|
-
</MS>
|
|
64
|
-
</Obj>
|
|
65
|
-
<Obj RefId="13">
|
|
66
|
-
<MS>
|
|
67
|
-
<Nil N="N" />
|
|
68
|
-
<S N="V"><%= command %></S>
|
|
69
|
-
</MS>
|
|
70
|
-
</Obj>
|
|
71
|
-
</LST>
|
|
72
|
-
</Obj>
|
|
73
|
-
</MS>
|
|
74
|
-
</Obj>
|
|
75
|
-
<Obj RefId="14">
|
|
76
|
-
<MS>
|
|
77
|
-
<S N="Cmd">Out-string</S>
|
|
78
|
-
<B N="IsScript">false</B>
|
|
79
|
-
<Nil N="UseLocalScope" />
|
|
80
|
-
<Obj N="MergeMyResult" RefId="15">
|
|
81
|
-
<TNRef RefId="1" />
|
|
82
|
-
<ToString>None</ToString>
|
|
83
|
-
<I32>0</I32>
|
|
84
|
-
</Obj>
|
|
85
|
-
<Obj N="MergeToResult" RefId="16">
|
|
86
|
-
<TNRef RefId="1" />
|
|
87
|
-
<ToString>None</ToString>
|
|
88
|
-
<I32>0</I32>
|
|
89
|
-
</Obj>
|
|
90
|
-
<Obj N="MergePreviousResults" RefId="17">
|
|
91
|
-
<TNRef RefId="1" />
|
|
92
|
-
<ToString>None</ToString>
|
|
93
|
-
<I32>0</I32>
|
|
94
|
-
</Obj>
|
|
95
|
-
<Obj N="MergeError" RefId="18">
|
|
96
|
-
<TNRef RefId="1" />
|
|
97
|
-
<ToString>None</ToString>
|
|
98
|
-
<I32>0</I32>
|
|
99
|
-
</Obj>
|
|
100
|
-
<Obj N="MergeWarning" RefId="19">
|
|
101
|
-
<TNRef RefId="1" />
|
|
102
|
-
<ToString>None</ToString>
|
|
103
|
-
<I32>0</I32>
|
|
104
|
-
</Obj>
|
|
105
|
-
<Obj N="MergeVerbose" RefId="20">
|
|
106
|
-
<TNRef RefId="1" />
|
|
107
|
-
<ToString>None</ToString>
|
|
108
|
-
<I32>0</I32>
|
|
109
|
-
</Obj>
|
|
110
|
-
<Obj N="MergeDebug" RefId="21">
|
|
111
|
-
<TNRef RefId="1" />
|
|
112
|
-
<ToString>None</ToString>
|
|
113
|
-
<I32>0</I32>
|
|
114
|
-
</Obj>
|
|
115
|
-
<Obj N="Args" RefId="22">
|
|
116
|
-
<TNRef RefId="0" />
|
|
117
|
-
<LST>
|
|
118
|
-
<Obj RefId="22">
|
|
119
|
-
<MS>
|
|
120
|
-
<S N="N">-Stream</S>
|
|
121
|
-
<Nil N="V" />
|
|
122
|
-
</MS>
|
|
123
|
-
</Obj>
|
|
124
|
-
</LST>
|
|
125
|
-
</Obj>
|
|
126
|
-
</MS>
|
|
127
|
-
</Obj>
|
|
128
|
-
</LST>
|
|
129
|
-
</Obj>
|
|
130
|
-
<B N="IsNested">false</B>
|
|
131
|
-
<Nil N="History" />
|
|
132
|
-
<B N="RedirectShellErrorOutputPipe">true</B>
|
|
133
|
-
</MS>
|
|
134
|
-
</Obj>
|
|
135
|
-
<B N="NoInput">true</B>
|
|
136
|
-
<Obj N="ApartmentState" RefId="23">
|
|
137
|
-
<TN RefId="2">
|
|
138
|
-
<T>System.Threading.ApartmentState</T>
|
|
139
|
-
<T>System.Enum</T>
|
|
140
|
-
<T>System.ValueType</T>
|
|
141
|
-
<T>System.Object</T>
|
|
142
|
-
</TN>
|
|
143
|
-
<ToString>Unknown</ToString>
|
|
144
|
-
<I32>2</I32>
|
|
145
|
-
</Obj>
|
|
146
|
-
<Obj N="RemoteStreamOptions" RefId="24">
|
|
147
|
-
<TN RefId="3">
|
|
148
|
-
<T>System.Management.Automation.RemoteStreamOptions</T>
|
|
149
|
-
<T>System.Enum</T>
|
|
150
|
-
<T>System.ValueType</T>
|
|
151
|
-
<T>System.Object</T>
|
|
152
|
-
</TN>
|
|
153
|
-
<ToString>0</ToString>
|
|
154
|
-
<I32>0</I32>
|
|
155
|
-
</Obj>
|
|
156
|
-
<B N="AddToHistory">true</B>
|
|
157
|
-
<Obj N="HostInfo" RefId="25">
|
|
158
|
-
<MS>
|
|
159
|
-
<B N="_isHostNull">true</B>
|
|
160
|
-
<B N="_isHostUINull">true</B>
|
|
161
|
-
<B N="_isHostRawUINull">true</B>
|
|
162
|
-
<B N="_useRunspaceHost">true</B>
|
|
163
|
-
</MS>
|
|
164
|
-
</Obj>
|
|
165
|
-
<B N="IsNested">false</B>
|
|
166
|
-
</MS>
|
|
167
|
-
</Obj>
|
|
1
|
+
<Obj RefId="0">
|
|
2
|
+
<MS>
|
|
3
|
+
<Obj N="PowerShell" RefId="1">
|
|
4
|
+
<MS>
|
|
5
|
+
<Obj N="Cmds" RefId="2">
|
|
6
|
+
<TN RefId="0">
|
|
7
|
+
<T>System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]</T>
|
|
8
|
+
<T>System.Object</T>
|
|
9
|
+
</TN>
|
|
10
|
+
<LST>
|
|
11
|
+
<Obj RefId="3">
|
|
12
|
+
<MS>
|
|
13
|
+
<S N="Cmd">Invoke-expression</S>
|
|
14
|
+
<B N="IsScript">false</B>
|
|
15
|
+
<Nil N="UseLocalScope" />
|
|
16
|
+
<Obj N="MergeMyResult" RefId="4">
|
|
17
|
+
<TN RefId="1">
|
|
18
|
+
<T>System.Management.Automation.Runspaces.PipelineResultTypes</T>
|
|
19
|
+
<T>System.Enum</T>
|
|
20
|
+
<T>System.ValueType</T>
|
|
21
|
+
<T>System.Object</T>
|
|
22
|
+
</TN>
|
|
23
|
+
<ToString>None</ToString>
|
|
24
|
+
<I32>0</I32>
|
|
25
|
+
</Obj>
|
|
26
|
+
<Obj N="MergeToResult" RefId="5">
|
|
27
|
+
<TNRef RefId="1" />
|
|
28
|
+
<ToString>None</ToString>
|
|
29
|
+
<I32>0</I32>
|
|
30
|
+
</Obj>
|
|
31
|
+
<Obj N="MergePreviousResults" RefId="6">
|
|
32
|
+
<TNRef RefId="1" />
|
|
33
|
+
<ToString>None</ToString>
|
|
34
|
+
<I32>0</I32>
|
|
35
|
+
</Obj>
|
|
36
|
+
<Obj N="MergeError" RefId="7">
|
|
37
|
+
<TNRef RefId="1" />
|
|
38
|
+
<ToString>None</ToString>
|
|
39
|
+
<I32>0</I32>
|
|
40
|
+
</Obj>
|
|
41
|
+
<Obj N="MergeWarning" RefId="8">
|
|
42
|
+
<TNRef RefId="1" />
|
|
43
|
+
<ToString>None</ToString>
|
|
44
|
+
<I32>0</I32>
|
|
45
|
+
</Obj>
|
|
46
|
+
<Obj N="MergeVerbose" RefId="9">
|
|
47
|
+
<TNRef RefId="1" />
|
|
48
|
+
<ToString>None</ToString>
|
|
49
|
+
<I32>0</I32>
|
|
50
|
+
</Obj>
|
|
51
|
+
<Obj N="MergeDebug" RefId="10">
|
|
52
|
+
<TNRef RefId="1" />
|
|
53
|
+
<ToString>None</ToString>
|
|
54
|
+
<I32>0</I32>
|
|
55
|
+
</Obj>
|
|
56
|
+
<Obj N="Args" RefId="11">
|
|
57
|
+
<TNRef RefId="0" />
|
|
58
|
+
<LST>
|
|
59
|
+
<Obj RefId="12">
|
|
60
|
+
<MS>
|
|
61
|
+
<S N="N">-Command</S>
|
|
62
|
+
<Nil N="V" />
|
|
63
|
+
</MS>
|
|
64
|
+
</Obj>
|
|
65
|
+
<Obj RefId="13">
|
|
66
|
+
<MS>
|
|
67
|
+
<Nil N="N" />
|
|
68
|
+
<S N="V"><%= command %></S>
|
|
69
|
+
</MS>
|
|
70
|
+
</Obj>
|
|
71
|
+
</LST>
|
|
72
|
+
</Obj>
|
|
73
|
+
</MS>
|
|
74
|
+
</Obj>
|
|
75
|
+
<Obj RefId="14">
|
|
76
|
+
<MS>
|
|
77
|
+
<S N="Cmd">Out-string</S>
|
|
78
|
+
<B N="IsScript">false</B>
|
|
79
|
+
<Nil N="UseLocalScope" />
|
|
80
|
+
<Obj N="MergeMyResult" RefId="15">
|
|
81
|
+
<TNRef RefId="1" />
|
|
82
|
+
<ToString>None</ToString>
|
|
83
|
+
<I32>0</I32>
|
|
84
|
+
</Obj>
|
|
85
|
+
<Obj N="MergeToResult" RefId="16">
|
|
86
|
+
<TNRef RefId="1" />
|
|
87
|
+
<ToString>None</ToString>
|
|
88
|
+
<I32>0</I32>
|
|
89
|
+
</Obj>
|
|
90
|
+
<Obj N="MergePreviousResults" RefId="17">
|
|
91
|
+
<TNRef RefId="1" />
|
|
92
|
+
<ToString>None</ToString>
|
|
93
|
+
<I32>0</I32>
|
|
94
|
+
</Obj>
|
|
95
|
+
<Obj N="MergeError" RefId="18">
|
|
96
|
+
<TNRef RefId="1" />
|
|
97
|
+
<ToString>None</ToString>
|
|
98
|
+
<I32>0</I32>
|
|
99
|
+
</Obj>
|
|
100
|
+
<Obj N="MergeWarning" RefId="19">
|
|
101
|
+
<TNRef RefId="1" />
|
|
102
|
+
<ToString>None</ToString>
|
|
103
|
+
<I32>0</I32>
|
|
104
|
+
</Obj>
|
|
105
|
+
<Obj N="MergeVerbose" RefId="20">
|
|
106
|
+
<TNRef RefId="1" />
|
|
107
|
+
<ToString>None</ToString>
|
|
108
|
+
<I32>0</I32>
|
|
109
|
+
</Obj>
|
|
110
|
+
<Obj N="MergeDebug" RefId="21">
|
|
111
|
+
<TNRef RefId="1" />
|
|
112
|
+
<ToString>None</ToString>
|
|
113
|
+
<I32>0</I32>
|
|
114
|
+
</Obj>
|
|
115
|
+
<Obj N="Args" RefId="22">
|
|
116
|
+
<TNRef RefId="0" />
|
|
117
|
+
<LST>
|
|
118
|
+
<Obj RefId="22">
|
|
119
|
+
<MS>
|
|
120
|
+
<S N="N">-Stream</S>
|
|
121
|
+
<Nil N="V" />
|
|
122
|
+
</MS>
|
|
123
|
+
</Obj>
|
|
124
|
+
</LST>
|
|
125
|
+
</Obj>
|
|
126
|
+
</MS>
|
|
127
|
+
</Obj>
|
|
128
|
+
</LST>
|
|
129
|
+
</Obj>
|
|
130
|
+
<B N="IsNested">false</B>
|
|
131
|
+
<Nil N="History" />
|
|
132
|
+
<B N="RedirectShellErrorOutputPipe">true</B>
|
|
133
|
+
</MS>
|
|
134
|
+
</Obj>
|
|
135
|
+
<B N="NoInput">true</B>
|
|
136
|
+
<Obj N="ApartmentState" RefId="23">
|
|
137
|
+
<TN RefId="2">
|
|
138
|
+
<T>System.Threading.ApartmentState</T>
|
|
139
|
+
<T>System.Enum</T>
|
|
140
|
+
<T>System.ValueType</T>
|
|
141
|
+
<T>System.Object</T>
|
|
142
|
+
</TN>
|
|
143
|
+
<ToString>Unknown</ToString>
|
|
144
|
+
<I32>2</I32>
|
|
145
|
+
</Obj>
|
|
146
|
+
<Obj N="RemoteStreamOptions" RefId="24">
|
|
147
|
+
<TN RefId="3">
|
|
148
|
+
<T>System.Management.Automation.RemoteStreamOptions</T>
|
|
149
|
+
<T>System.Enum</T>
|
|
150
|
+
<T>System.ValueType</T>
|
|
151
|
+
<T>System.Object</T>
|
|
152
|
+
</TN>
|
|
153
|
+
<ToString>0</ToString>
|
|
154
|
+
<I32>0</I32>
|
|
155
|
+
</Obj>
|
|
156
|
+
<B N="AddToHistory">true</B>
|
|
157
|
+
<Obj N="HostInfo" RefId="25">
|
|
158
|
+
<MS>
|
|
159
|
+
<B N="_isHostNull">true</B>
|
|
160
|
+
<B N="_isHostUINull">true</B>
|
|
161
|
+
<B N="_isHostRawUINull">true</B>
|
|
162
|
+
<B N="_useRunspaceHost">true</B>
|
|
163
|
+
</MS>
|
|
164
|
+
</Obj>
|
|
165
|
+
<B N="IsNested">false</B>
|
|
166
|
+
</MS>
|
|
167
|
+
</Obj>
|