<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: Список Включенных компонентов Windows (Dism)]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11907</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11907&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: Список Включенных компонентов Windows (Dism)».]]></description>
		<lastBuildDate>Tue, 16 Aug 2016 05:32:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106820#p106820</link>
			<description><![CDATA[<p><strong>Flasher</strong><br />Огромное спасибо уважаемый! То что надо.</p>]]></description>
			<author><![CDATA[null@example.com (TAOSoft)]]></author>
			<pubDate>Tue, 16 Aug 2016 05:32:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106820#p106820</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106819#p106819</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 15 Aug 2016 22:39:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106819#p106819</guid>
		</item>
		<item>
			<title><![CDATA[VBS: Список Включенных компонентов Windows (Dism)]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106776#p106776</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (TAOSoft)]]></author>
			<pubDate>Mon, 15 Aug 2016 12:35:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106776#p106776</guid>
		</item>
	</channel>
</rss>
