<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Список Включенных компонентов Windows (Dism)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11907&amp;type=atom" />
	<updated>2016-08-16T05:32:05Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11907</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106820#p106820" />
			<content type="html"><![CDATA[<p><strong>Flasher</strong><br />Огромное спасибо уважаемый! То что надо.</p>]]></content>
			<author>
				<name><![CDATA[TAOSoft]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26905</uri>
			</author>
			<updated>2016-08-16T05:32:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106820#p106820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106819#p106819" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>With CreateObject(&quot;ADODB.Stream&quot;)
	.Open : .Charset = &quot;windows-1251&quot; : .WriteText _
	CreateObject(&quot;WScript.Shell&quot;).Exec(&quot;Dism /online /Get-Features&quot;).StdOut.ReadAll
	.Position = 0 : .Charset = &quot;CP866&quot;
	Do: Str = Trim(.ReadText(-2))
		If Str &lt;&gt; &quot;&quot; Then MsgBox Str
	Loop Until .EOS : .Close
End With</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2016-08-15T22:39:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106819#p106819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106776#p106776" />
			<content type="html"><![CDATA[<p>Здравствуйте уважаемые знатоки!<br />Задача такова: Есть куча Win 7 (рус), необходимо вывести список Включенных компонентов Windows по средствам <br />выполнения команды Dism /online /Get-Features. Если выполняю штатным образом руками по средствам вызовов этой команды через cmd, то вижу читаемый список, но как только пытаюсь завернуть команду в vbs скрипт, то получаю на выходе не читаемый&nbsp; текст (проблема с кодировкой). Помогите пожалуйста добить скрипт, чтобы выводил читаемый текст. Заранее благодарю за содействие.<br /></p><div class="codebox"><pre><code>
Dim WshShell : Set WshShell = CreateObject(&quot;WScript.Shell&quot;)

GetNetFeatureStatus

msgbox &quot;Finish&quot;

Sub GetNetFeatureStatus
Dim objShell,objExecObject,Flag,strText,returnValue,Result


Set WshExec = WshShell.Exec(&quot;cmd&quot;)
With WshExec.StdIn
	.WriteLine &quot;CLS&quot;
	.WriteLine &quot;chcp 1251&quot;
	.WriteLine &quot;Dism /online /Get-Features&quot;

End With


&#039;	Set objExecObject = WshExec.Exec(&quot;Dism /online /Get-Features&quot;)

strText = vbNullString

Do While Not WshExec.StdOut.AtEndOfStream
&#039;Do While Not objExecObject.StdOut.AtEndOfStream
	strText = WshExec.StdOut.ReadLine()
	msgbox strText
	returnValue = InStr(strText,&quot;Включен&quot;)
Loop


End Sub

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[TAOSoft]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26905</uri>
			</author>
			<updated>2016-08-15T12:35:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106776#p106776</id>
		</entry>
</feed>
