<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=4923&amp;type=atom" />
	<updated>2010-10-06T09:40:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=4923</id>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39994#p39994" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Евген пишет:</cite><blockquote><p>Вот - есть у всех...</p></blockquote></div><p>Или, то же самое, в виде функции<br /></p><div class="codebox"><pre><code>Function ProcessView(Name, Computer)
    if Computer = &quot;&quot; Then
        Computer = &quot;.&quot;
    End If

    Dim Query
    Query = &quot;SELECT * FROM Win32_Process&quot;
    If Name &lt;&gt; &quot;&quot; Then
        Query = Query + &quot; WHERE Name=&#039;&quot; &amp; Name &amp; &quot;&#039;&quot;
    End If

    Dim WMI
    Set WMI = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; &amp; Computer &amp; &quot;\root\cimv2&quot;)

    Set ProcessView = WMI.ExecQuery(Query)
End Function

Computer = &quot;.&quot;
Name = &quot;cmd.exe&quot;

Set pv = ProcessView(Name, Computer)
For Each p in pv
    Wscript.Echo p.Name, p.CommandLine
Next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2010-10-06T09:40:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39994#p39994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39930#p39930" />
			<content type="html"><![CDATA[<p>Вот - есть у всех...<br />код сохраните в vbs файл<br /></p><div class="codebox"><pre><code>strComputer = &quot;.&quot;
Set objWMIService = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)
Set colProcessList = objWMIService.ExecQuery(&quot;Select * from Win32_Process where Name=&#039;wscript.exe&#039;&quot;)
For Each objProcess in colProcessList
    Wscript.Echo objProcess.CommandLine
Next</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Евген]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25253</uri>
			</author>
			<updated>2010-10-05T14:20:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39930#p39930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39904#p39904" />
			<content type="html"><![CDATA[<p>wmic.exe тоже не у всех имеется.<br />У меня например, на рабочих компах стоит&nbsp; WinXP Home. И wmic.exe нету в комплекте.</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2010-10-05T07:59:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39904#p39904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39843#p39843" />
			<content type="html"><![CDATA[<p>Угу.<br /></p><div class="codebox"><pre><code>wmic.exe process where &quot;name=&#039;wscript.exe&#039;&quot; get commandline</code></pre></div><p>и, например:<br /></p><div class="codebox"><pre><code>wmic.exe process where (name=&quot;wscript.exe&quot; and commandline like &quot;%\\temp\\%&quot;) call terminate</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-10-03T07:59:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39843#p39843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39836#p39836" />
			<content type="html"><![CDATA[<p>Можно без сторонних приложений ...<br />Win32_Process свойство ExecutablePath у нужного процесса</p>]]></content>
			<author>
				<name><![CDATA[Евген]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25253</uri>
			</author>
			<updated>2010-10-03T05:20:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39836#p39836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39831#p39831" />
			<content type="html"><![CDATA[<p>Консольная утилита<br />Process Viewer - <a href="http://www.teamcti.com/pview/prcview.htm">http://www.teamcti.com/pview/prcview.htm</a></p><p>&nbsp; &nbsp;Запускать так <br /><strong>pv.exe WScript.exe -l</strong><br />&nbsp; &nbsp;На что получим:<br /><strong>WScript.exe&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1756 &quot;C:\WINDOWS\System32\WScript.exe&quot; &quot;С:\create lnk.js&quot;</strong><br />&nbsp; &nbsp;Ключ -l показывает параметры с которыми был запущен процесс.<br />&nbsp; &nbsp;Так же поддерживаются маски в имени файла.<br />&nbsp; &nbsp;PS Кстати утилита отлично убивает подвисшие процессы. с ключом -k</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2010-10-02T16:51:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39831#p39831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39342#p39342" />
			<content type="html"><![CDATA[<p><a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx">Process Explorer</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-09-09T10:59:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39342#p39342</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39340#p39340" />
			<content type="html"><![CDATA[<p>Наверное, можно попробовать, просматривать процесс в поисках чего-то похожего на аргументы запуска, с помощью какого нибудь инструмента для просмотра памяти процессов, например ArtMoney.</p>]]></content>
			<author>
				<name><![CDATA[Poltergeyst]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=83</uri>
			</author>
			<updated>2010-09-09T10:41:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39340#p39340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[WSH: процесс WSCRIPT.EXE, узнать какой скрипт выполняется?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=39337#p39337" />
			<content type="html"><![CDATA[<p>в диспетчере задач обнаружил процесс WSCRIPT.EXE, понял что это обработка какого-то сценария, но какого я не сразу смог узнать. Можно как то определить какой сейчас сценарий выполняется, путь к нему или непосредственно получить сам текст скрипта???</p>]]></content>
			<author>
				<name><![CDATA[Alexs37]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=9180</uri>
			</author>
			<updated>2010-09-09T09:52:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=39337#p39337</id>
		</entry>
</feed>
