winrm 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/lib/winrm/psrp/fragment.rb
CHANGED
@@ -1,70 +1,70 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
#
|
3
|
-
# Copyright 2016 Matt Wrock <matt@mattwrock.com>
|
4
|
-
# Copyright 2016 Shawn Neal <sneal@sneal.net>
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the 'License');
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an 'AS IS' BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
|
18
|
-
module WinRM
|
19
|
-
# PowerShell Remoting Protcol module
|
20
|
-
module PSRP
|
21
|
-
# PowerShell Remoting Protocol message fragment.
|
22
|
-
class Fragment
|
23
|
-
# Creates a new PSRP message fragment
|
24
|
-
# @param object_id [Fixnum] The id of the fragmented message.
|
25
|
-
# @param blob [Array] Array of fragmented bytes.
|
26
|
-
# @param fragment_id [Fixnum] The id of this fragment
|
27
|
-
# @param start_fragment [Boolean] If the fragment is the first fragment
|
28
|
-
# @param end_fragment [Boolean] If the fragment is the last fragment
|
29
|
-
def initialize(object_id, blob, fragment_id = 0, start_fragment = true, end_fragment = true)
|
30
|
-
@object_id = object_id
|
31
|
-
@blob = blob
|
32
|
-
@fragment_id = fragment_id
|
33
|
-
@start_fragment = start_fragment
|
34
|
-
@end_fragment = end_fragment
|
35
|
-
end
|
36
|
-
|
37
|
-
attr_reader :object_id, :fragment_id, :end_fragment, :start_fragment, :blob
|
38
|
-
|
39
|
-
# Returns the raw PSRP message bytes ready for transfer to Windows inside a
|
40
|
-
# WinRM message.
|
41
|
-
# @return [Array<Byte>] Unencoded raw byte array of the PSRP message.
|
42
|
-
def bytes
|
43
|
-
[
|
44
|
-
int64be(object_id),
|
45
|
-
int64be(fragment_id),
|
46
|
-
end_start_fragment,
|
47
|
-
int16be(blob.length),
|
48
|
-
blob
|
49
|
-
].flatten
|
50
|
-
end
|
51
|
-
|
52
|
-
private
|
53
|
-
|
54
|
-
def end_start_fragment
|
55
|
-
end_start = 0
|
56
|
-
end_start += 0b10 if end_fragment
|
57
|
-
end_start += 0b1 if start_fragment
|
58
|
-
[end_start]
|
59
|
-
end
|
60
|
-
|
61
|
-
def int64be(int64)
|
62
|
-
[int64 >> 32, int64 & 0x00000000ffffffff].pack('N2').unpack('C8')
|
63
|
-
end
|
64
|
-
|
65
|
-
def int16be(int16)
|
66
|
-
[int16].pack('N').unpack('C4')
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
1
|
+
# encoding: UTF-8
|
2
|
+
#
|
3
|
+
# Copyright 2016 Matt Wrock <matt@mattwrock.com>
|
4
|
+
# Copyright 2016 Shawn Neal <sneal@sneal.net>
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the 'License');
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an 'AS IS' BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
|
18
|
+
module WinRM
|
19
|
+
# PowerShell Remoting Protcol module
|
20
|
+
module PSRP
|
21
|
+
# PowerShell Remoting Protocol message fragment.
|
22
|
+
class Fragment
|
23
|
+
# Creates a new PSRP message fragment
|
24
|
+
# @param object_id [Fixnum] The id of the fragmented message.
|
25
|
+
# @param blob [Array] Array of fragmented bytes.
|
26
|
+
# @param fragment_id [Fixnum] The id of this fragment
|
27
|
+
# @param start_fragment [Boolean] If the fragment is the first fragment
|
28
|
+
# @param end_fragment [Boolean] If the fragment is the last fragment
|
29
|
+
def initialize(object_id, blob, fragment_id = 0, start_fragment = true, end_fragment = true)
|
30
|
+
@object_id = object_id
|
31
|
+
@blob = blob
|
32
|
+
@fragment_id = fragment_id
|
33
|
+
@start_fragment = start_fragment
|
34
|
+
@end_fragment = end_fragment
|
35
|
+
end
|
36
|
+
|
37
|
+
attr_reader :object_id, :fragment_id, :end_fragment, :start_fragment, :blob
|
38
|
+
|
39
|
+
# Returns the raw PSRP message bytes ready for transfer to Windows inside a
|
40
|
+
# WinRM message.
|
41
|
+
# @return [Array<Byte>] Unencoded raw byte array of the PSRP message.
|
42
|
+
def bytes
|
43
|
+
[
|
44
|
+
int64be(object_id),
|
45
|
+
int64be(fragment_id),
|
46
|
+
end_start_fragment,
|
47
|
+
int16be(blob.length),
|
48
|
+
blob
|
49
|
+
].flatten
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def end_start_fragment
|
55
|
+
end_start = 0
|
56
|
+
end_start += 0b10 if end_fragment
|
57
|
+
end_start += 0b1 if start_fragment
|
58
|
+
[end_start]
|
59
|
+
end
|
60
|
+
|
61
|
+
def int64be(int64)
|
62
|
+
[int64 >> 32, int64 & 0x00000000ffffffff].pack('N2').unpack('C8')
|
63
|
+
end
|
64
|
+
|
65
|
+
def int16be(int16)
|
66
|
+
[int16].pack('N').unpack('C4')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -1,224 +1,224 @@
|
|
1
|
-
<Obj RefId="0">
|
2
|
-
<MS>
|
3
|
-
<I32 N="MinRunspaces">1</I32>
|
4
|
-
<I32 N="MaxRunspaces">1</I32>
|
5
|
-
<Obj N="PSThreadOptions" RefId="1">
|
6
|
-
<TN RefId="0">
|
7
|
-
<T>System.Management.Automation.Runspaces.PSThreadOptions</T>
|
8
|
-
<T>System.Enum</T>
|
9
|
-
<T>System.ValueType</T>
|
10
|
-
<T>System.Object</T>
|
11
|
-
</TN>
|
12
|
-
<ToString>Default</ToString>
|
13
|
-
<I32>0</I32>
|
14
|
-
</Obj>
|
15
|
-
<Obj N="ApartmentState" RefId="2">
|
16
|
-
<TN RefId="1">
|
17
|
-
<T>System.Threading.ApartmentState</T>
|
18
|
-
<T>System.Enum</T>
|
19
|
-
<T>System.ValueType</T>
|
20
|
-
<T>System.Object</T>
|
21
|
-
</TN>
|
22
|
-
<ToString>Unknown</ToString>
|
23
|
-
<I32>2</I32>
|
24
|
-
</Obj>
|
25
|
-
<Obj N="ApplicationArguments" RefId="3">
|
26
|
-
<TN RefId="2">
|
27
|
-
<T>System.Management.Automation.PSPrimitiveDictionary</T>
|
28
|
-
<T>System.Collections.Hashtable</T>
|
29
|
-
<T>System.Object</T>
|
30
|
-
</TN>
|
31
|
-
<DCT>
|
32
|
-
<En>
|
33
|
-
<S N="Key">PSVersionTable</S>
|
34
|
-
<Obj N="Value" RefId="4">
|
35
|
-
<TNRef RefId="2" />
|
36
|
-
<DCT>
|
37
|
-
<En>
|
38
|
-
<S N="Key">PSVersion</S>
|
39
|
-
<Version N="Value">5.0.11082.1000</Version>
|
40
|
-
</En>
|
41
|
-
<En>
|
42
|
-
<S N="Key">PSCompatibleVersions</S>
|
43
|
-
<Obj N="Value" RefId="5">
|
44
|
-
<TN RefId="3">
|
45
|
-
<T>System.Version[]</T>
|
46
|
-
<T>System.Array</T>
|
47
|
-
<T>System.Object</T>
|
48
|
-
</TN>
|
49
|
-
<LST>
|
50
|
-
<Version>1.0</Version>
|
51
|
-
<Version>2.0</Version>
|
52
|
-
<Version>3.0</Version>
|
53
|
-
<Version>4.0</Version>
|
54
|
-
<Version>5.0.11082.1000</Version>
|
55
|
-
</LST>
|
56
|
-
</Obj>
|
57
|
-
</En>
|
58
|
-
<En>
|
59
|
-
<S N="Key">CLRVersion</S>
|
60
|
-
<Version N="Value">4.0.30319.42000</Version>
|
61
|
-
</En>
|
62
|
-
<En>
|
63
|
-
<S N="Key">BuildVersion</S>
|
64
|
-
<Version N="Value">10.0.11082.1000</Version>
|
65
|
-
</En>
|
66
|
-
<En>
|
67
|
-
<S N="Key">WSManStackVersion</S>
|
68
|
-
<Version N="Value">3.0</Version>
|
69
|
-
</En>
|
70
|
-
<En>
|
71
|
-
<S N="Key">PSRemotingProtocolVersion</S>
|
72
|
-
<Version N="Value">2.3</Version>
|
73
|
-
</En>
|
74
|
-
<En>
|
75
|
-
<S N="Key">SerializationVersion</S>
|
76
|
-
<Version N="Value">1.1.0.1</Version>
|
77
|
-
</En>
|
78
|
-
</DCT>
|
79
|
-
</Obj>
|
80
|
-
</En>
|
81
|
-
</DCT>
|
82
|
-
</Obj>
|
83
|
-
<Obj N="HostInfo" RefId="6">
|
84
|
-
<MS>
|
85
|
-
<Obj N="_hostDefaultData" RefId="7">
|
86
|
-
<MS>
|
87
|
-
<Obj N="data" RefId="8">
|
88
|
-
<TN RefId="4">
|
89
|
-
<T>System.Collections.Hashtable</T>
|
90
|
-
<T>System.Object</T>
|
91
|
-
</TN>
|
92
|
-
<DCT>
|
93
|
-
<En>
|
94
|
-
<I32 N="Key">9</I32>
|
95
|
-
<Obj N="Value" RefId="9">
|
96
|
-
<MS>
|
97
|
-
<S N="T">System.String</S>
|
98
|
-
<S N="V">C:\dev\kitchen-vagrant</S>
|
99
|
-
</MS>
|
100
|
-
</Obj>
|
101
|
-
</En>
|
102
|
-
<En>
|
103
|
-
<I32 N="Key">8</I32>
|
104
|
-
<Obj N="Value" RefId="10">
|
105
|
-
<MS>
|
106
|
-
<S N="T">System.Management.Automation.Host.Size</S>
|
107
|
-
<Obj N="V" RefId="11">
|
108
|
-
<MS>
|
109
|
-
<I32 N="width">199</I32>
|
110
|
-
<I32 N="height">52</I32>
|
111
|
-
</MS>
|
112
|
-
</Obj>
|
113
|
-
</MS>
|
114
|
-
</Obj>
|
115
|
-
</En>
|
116
|
-
<En>
|
117
|
-
<I32 N="Key">7</I32>
|
118
|
-
<Obj N="Value" RefId="12">
|
119
|
-
<MS>
|
120
|
-
<S N="T">System.Management.Automation.Host.Size</S>
|
121
|
-
<Obj N="V" RefId="13">
|
122
|
-
<MS>
|
123
|
-
<I32 N="width">80</I32>
|
124
|
-
<I32 N="height">52</I32>
|
125
|
-
</MS>
|
126
|
-
</Obj>
|
127
|
-
</MS>
|
128
|
-
</Obj>
|
129
|
-
</En>
|
130
|
-
<En>
|
131
|
-
<I32 N="Key">6</I32>
|
132
|
-
<Obj N="Value" RefId="14">
|
133
|
-
<MS>
|
134
|
-
<S N="T">System.Management.Automation.Host.Size</S>
|
135
|
-
<Obj N="V" RefId="15">
|
136
|
-
<MS>
|
137
|
-
<I32 N="width">80</I32>
|
138
|
-
<I32 N="height">25</I32>
|
139
|
-
</MS>
|
140
|
-
</Obj>
|
141
|
-
</MS>
|
142
|
-
</Obj>
|
143
|
-
</En>
|
144
|
-
<En>
|
145
|
-
<I32 N="Key">5</I32>
|
146
|
-
<Obj N="Value" RefId="16">
|
147
|
-
<MS>
|
148
|
-
<S N="T">System.Management.Automation.Host.Size</S>
|
149
|
-
<Obj N="V" RefId="17">
|
150
|
-
<MS>
|
151
|
-
<I32 N="width">80</I32>
|
152
|
-
<I32 N="height">9999</I32>
|
153
|
-
</MS>
|
154
|
-
</Obj>
|
155
|
-
</MS>
|
156
|
-
</Obj>
|
157
|
-
</En>
|
158
|
-
<En>
|
159
|
-
<I32 N="Key">4</I32>
|
160
|
-
<Obj N="Value" RefId="18">
|
161
|
-
<MS>
|
162
|
-
<S N="T">System.Int32</S>
|
163
|
-
<I32 N="V">25</I32>
|
164
|
-
</MS>
|
165
|
-
</Obj>
|
166
|
-
</En>
|
167
|
-
<En>
|
168
|
-
<I32 N="Key">3</I32>
|
169
|
-
<Obj N="Value" RefId="19">
|
170
|
-
<MS>
|
171
|
-
<S N="T">System.Management.Automation.Host.Coordinates</S>
|
172
|
-
<Obj N="V" RefId="20">
|
173
|
-
<MS>
|
174
|
-
<I32 N="x">0</I32>
|
175
|
-
<I32 N="y">9974</I32>
|
176
|
-
</MS>
|
177
|
-
</Obj>
|
178
|
-
</MS>
|
179
|
-
</Obj>
|
180
|
-
</En>
|
181
|
-
<En>
|
182
|
-
<I32 N="Key">2</I32>
|
183
|
-
<Obj N="Value" RefId="21">
|
184
|
-
<MS>
|
185
|
-
<S N="T">System.Management.Automation.Host.Coordinates</S>
|
186
|
-
<Obj N="V" RefId="22">
|
187
|
-
<MS>
|
188
|
-
<I32 N="x">0</I32>
|
189
|
-
<I32 N="y">9998</I32>
|
190
|
-
</MS>
|
191
|
-
</Obj>
|
192
|
-
</MS>
|
193
|
-
</Obj>
|
194
|
-
</En>
|
195
|
-
<En>
|
196
|
-
<I32 N="Key">1</I32>
|
197
|
-
<Obj N="Value" RefId="23">
|
198
|
-
<MS>
|
199
|
-
<S N="T">System.ConsoleColor</S>
|
200
|
-
<I32 N="V">0</I32>
|
201
|
-
</MS>
|
202
|
-
</Obj>
|
203
|
-
</En>
|
204
|
-
<En>
|
205
|
-
<I32 N="Key">0</I32>
|
206
|
-
<Obj N="Value" RefId="24">
|
207
|
-
<MS>
|
208
|
-
<S N="T">System.ConsoleColor</S>
|
209
|
-
<I32 N="V">7</I32>
|
210
|
-
</MS>
|
211
|
-
</Obj>
|
212
|
-
</En>
|
213
|
-
</DCT>
|
214
|
-
</Obj>
|
215
|
-
</MS>
|
216
|
-
</Obj>
|
217
|
-
<B N="_isHostNull">false</B>
|
218
|
-
<B N="_isHostUINull">false</B>
|
219
|
-
<B N="_isHostRawUINull">false</B>
|
220
|
-
<B N="_useRunspaceHost">false</B>
|
221
|
-
</MS>
|
222
|
-
</Obj>
|
223
|
-
</MS>
|
224
|
-
</Obj>
|
1
|
+
<Obj RefId="0">
|
2
|
+
<MS>
|
3
|
+
<I32 N="MinRunspaces">1</I32>
|
4
|
+
<I32 N="MaxRunspaces">1</I32>
|
5
|
+
<Obj N="PSThreadOptions" RefId="1">
|
6
|
+
<TN RefId="0">
|
7
|
+
<T>System.Management.Automation.Runspaces.PSThreadOptions</T>
|
8
|
+
<T>System.Enum</T>
|
9
|
+
<T>System.ValueType</T>
|
10
|
+
<T>System.Object</T>
|
11
|
+
</TN>
|
12
|
+
<ToString>Default</ToString>
|
13
|
+
<I32>0</I32>
|
14
|
+
</Obj>
|
15
|
+
<Obj N="ApartmentState" RefId="2">
|
16
|
+
<TN RefId="1">
|
17
|
+
<T>System.Threading.ApartmentState</T>
|
18
|
+
<T>System.Enum</T>
|
19
|
+
<T>System.ValueType</T>
|
20
|
+
<T>System.Object</T>
|
21
|
+
</TN>
|
22
|
+
<ToString>Unknown</ToString>
|
23
|
+
<I32>2</I32>
|
24
|
+
</Obj>
|
25
|
+
<Obj N="ApplicationArguments" RefId="3">
|
26
|
+
<TN RefId="2">
|
27
|
+
<T>System.Management.Automation.PSPrimitiveDictionary</T>
|
28
|
+
<T>System.Collections.Hashtable</T>
|
29
|
+
<T>System.Object</T>
|
30
|
+
</TN>
|
31
|
+
<DCT>
|
32
|
+
<En>
|
33
|
+
<S N="Key">PSVersionTable</S>
|
34
|
+
<Obj N="Value" RefId="4">
|
35
|
+
<TNRef RefId="2" />
|
36
|
+
<DCT>
|
37
|
+
<En>
|
38
|
+
<S N="Key">PSVersion</S>
|
39
|
+
<Version N="Value">5.0.11082.1000</Version>
|
40
|
+
</En>
|
41
|
+
<En>
|
42
|
+
<S N="Key">PSCompatibleVersions</S>
|
43
|
+
<Obj N="Value" RefId="5">
|
44
|
+
<TN RefId="3">
|
45
|
+
<T>System.Version[]</T>
|
46
|
+
<T>System.Array</T>
|
47
|
+
<T>System.Object</T>
|
48
|
+
</TN>
|
49
|
+
<LST>
|
50
|
+
<Version>1.0</Version>
|
51
|
+
<Version>2.0</Version>
|
52
|
+
<Version>3.0</Version>
|
53
|
+
<Version>4.0</Version>
|
54
|
+
<Version>5.0.11082.1000</Version>
|
55
|
+
</LST>
|
56
|
+
</Obj>
|
57
|
+
</En>
|
58
|
+
<En>
|
59
|
+
<S N="Key">CLRVersion</S>
|
60
|
+
<Version N="Value">4.0.30319.42000</Version>
|
61
|
+
</En>
|
62
|
+
<En>
|
63
|
+
<S N="Key">BuildVersion</S>
|
64
|
+
<Version N="Value">10.0.11082.1000</Version>
|
65
|
+
</En>
|
66
|
+
<En>
|
67
|
+
<S N="Key">WSManStackVersion</S>
|
68
|
+
<Version N="Value">3.0</Version>
|
69
|
+
</En>
|
70
|
+
<En>
|
71
|
+
<S N="Key">PSRemotingProtocolVersion</S>
|
72
|
+
<Version N="Value">2.3</Version>
|
73
|
+
</En>
|
74
|
+
<En>
|
75
|
+
<S N="Key">SerializationVersion</S>
|
76
|
+
<Version N="Value">1.1.0.1</Version>
|
77
|
+
</En>
|
78
|
+
</DCT>
|
79
|
+
</Obj>
|
80
|
+
</En>
|
81
|
+
</DCT>
|
82
|
+
</Obj>
|
83
|
+
<Obj N="HostInfo" RefId="6">
|
84
|
+
<MS>
|
85
|
+
<Obj N="_hostDefaultData" RefId="7">
|
86
|
+
<MS>
|
87
|
+
<Obj N="data" RefId="8">
|
88
|
+
<TN RefId="4">
|
89
|
+
<T>System.Collections.Hashtable</T>
|
90
|
+
<T>System.Object</T>
|
91
|
+
</TN>
|
92
|
+
<DCT>
|
93
|
+
<En>
|
94
|
+
<I32 N="Key">9</I32>
|
95
|
+
<Obj N="Value" RefId="9">
|
96
|
+
<MS>
|
97
|
+
<S N="T">System.String</S>
|
98
|
+
<S N="V">C:\dev\kitchen-vagrant</S>
|
99
|
+
</MS>
|
100
|
+
</Obj>
|
101
|
+
</En>
|
102
|
+
<En>
|
103
|
+
<I32 N="Key">8</I32>
|
104
|
+
<Obj N="Value" RefId="10">
|
105
|
+
<MS>
|
106
|
+
<S N="T">System.Management.Automation.Host.Size</S>
|
107
|
+
<Obj N="V" RefId="11">
|
108
|
+
<MS>
|
109
|
+
<I32 N="width">199</I32>
|
110
|
+
<I32 N="height">52</I32>
|
111
|
+
</MS>
|
112
|
+
</Obj>
|
113
|
+
</MS>
|
114
|
+
</Obj>
|
115
|
+
</En>
|
116
|
+
<En>
|
117
|
+
<I32 N="Key">7</I32>
|
118
|
+
<Obj N="Value" RefId="12">
|
119
|
+
<MS>
|
120
|
+
<S N="T">System.Management.Automation.Host.Size</S>
|
121
|
+
<Obj N="V" RefId="13">
|
122
|
+
<MS>
|
123
|
+
<I32 N="width">80</I32>
|
124
|
+
<I32 N="height">52</I32>
|
125
|
+
</MS>
|
126
|
+
</Obj>
|
127
|
+
</MS>
|
128
|
+
</Obj>
|
129
|
+
</En>
|
130
|
+
<En>
|
131
|
+
<I32 N="Key">6</I32>
|
132
|
+
<Obj N="Value" RefId="14">
|
133
|
+
<MS>
|
134
|
+
<S N="T">System.Management.Automation.Host.Size</S>
|
135
|
+
<Obj N="V" RefId="15">
|
136
|
+
<MS>
|
137
|
+
<I32 N="width">80</I32>
|
138
|
+
<I32 N="height">25</I32>
|
139
|
+
</MS>
|
140
|
+
</Obj>
|
141
|
+
</MS>
|
142
|
+
</Obj>
|
143
|
+
</En>
|
144
|
+
<En>
|
145
|
+
<I32 N="Key">5</I32>
|
146
|
+
<Obj N="Value" RefId="16">
|
147
|
+
<MS>
|
148
|
+
<S N="T">System.Management.Automation.Host.Size</S>
|
149
|
+
<Obj N="V" RefId="17">
|
150
|
+
<MS>
|
151
|
+
<I32 N="width">80</I32>
|
152
|
+
<I32 N="height">9999</I32>
|
153
|
+
</MS>
|
154
|
+
</Obj>
|
155
|
+
</MS>
|
156
|
+
</Obj>
|
157
|
+
</En>
|
158
|
+
<En>
|
159
|
+
<I32 N="Key">4</I32>
|
160
|
+
<Obj N="Value" RefId="18">
|
161
|
+
<MS>
|
162
|
+
<S N="T">System.Int32</S>
|
163
|
+
<I32 N="V">25</I32>
|
164
|
+
</MS>
|
165
|
+
</Obj>
|
166
|
+
</En>
|
167
|
+
<En>
|
168
|
+
<I32 N="Key">3</I32>
|
169
|
+
<Obj N="Value" RefId="19">
|
170
|
+
<MS>
|
171
|
+
<S N="T">System.Management.Automation.Host.Coordinates</S>
|
172
|
+
<Obj N="V" RefId="20">
|
173
|
+
<MS>
|
174
|
+
<I32 N="x">0</I32>
|
175
|
+
<I32 N="y">9974</I32>
|
176
|
+
</MS>
|
177
|
+
</Obj>
|
178
|
+
</MS>
|
179
|
+
</Obj>
|
180
|
+
</En>
|
181
|
+
<En>
|
182
|
+
<I32 N="Key">2</I32>
|
183
|
+
<Obj N="Value" RefId="21">
|
184
|
+
<MS>
|
185
|
+
<S N="T">System.Management.Automation.Host.Coordinates</S>
|
186
|
+
<Obj N="V" RefId="22">
|
187
|
+
<MS>
|
188
|
+
<I32 N="x">0</I32>
|
189
|
+
<I32 N="y">9998</I32>
|
190
|
+
</MS>
|
191
|
+
</Obj>
|
192
|
+
</MS>
|
193
|
+
</Obj>
|
194
|
+
</En>
|
195
|
+
<En>
|
196
|
+
<I32 N="Key">1</I32>
|
197
|
+
<Obj N="Value" RefId="23">
|
198
|
+
<MS>
|
199
|
+
<S N="T">System.ConsoleColor</S>
|
200
|
+
<I32 N="V">0</I32>
|
201
|
+
</MS>
|
202
|
+
</Obj>
|
203
|
+
</En>
|
204
|
+
<En>
|
205
|
+
<I32 N="Key">0</I32>
|
206
|
+
<Obj N="Value" RefId="24">
|
207
|
+
<MS>
|
208
|
+
<S N="T">System.ConsoleColor</S>
|
209
|
+
<I32 N="V">7</I32>
|
210
|
+
</MS>
|
211
|
+
</Obj>
|
212
|
+
</En>
|
213
|
+
</DCT>
|
214
|
+
</Obj>
|
215
|
+
</MS>
|
216
|
+
</Obj>
|
217
|
+
<B N="_isHostNull">false</B>
|
218
|
+
<B N="_isHostUINull">false</B>
|
219
|
+
<B N="_isHostRawUINull">false</B>
|
220
|
+
<B N="_useRunspaceHost">false</B>
|
221
|
+
</MS>
|
222
|
+
</Obj>
|
223
|
+
</MS>
|
224
|
+
</Obj>
|