<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Ведение лога запускаемых программ]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=6684&amp;type=atom" />
	<updated>2012-01-21T06:31:36Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=6684</id>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55850#p55850" />
			<content type="html"><![CDATA[<p><strong>smaharbA</strong>, знать бы, что автору нужен именно постоянный. Лично я предпочитаю такого плана — быстрее и проще перенастроить, если что.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-01-21T06:31:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55850#p55850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55849#p55849" />
			<content type="html"><![CDATA[<p>alexii - тогда уж постоянного получателя один раз и все</p><p>автор - есть такая оснастка &quot;мастер настройки безопасности&quot;, там аудит настраивается и в том числе сабжа</p>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=2911</uri>
			</author>
			<updated>2012-01-21T05:56:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55849#p55849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55777#p55777" />
			<content type="html"><![CDATA[<p>Ну, тогда примерно так:<br /></p><div class="codebox"><pre><code>Option Explicit

Const ForAppending = 8
Const TristateTrue = -1


Dim strComputer

Dim objSWbemLocator
Dim objSWbemServicesEx
Dim objSWbemEventSource
Dim objSWbemObjectEx

Dim objFSO
Dim objTS


strComputer = &quot;.&quot;

Set objSWbemLocator     = WScript.CreateObject(&quot;WbemScripting.SWbemLocator&quot;)
Set objSWbemServicesEx  = objSWbemLocator.ConnectServer(strComputer, &quot;root\cimv2&quot;)
Set objSWbemEventSource = objSWbemServicesEx.ExecNotificationQuery( _
    &quot;SELECT * FROM __InstanceCreationEvent WITHIN 1 &quot; &amp; _
    &quot;WHERE TargetInstance ISA &#039;Win32_Process&#039;&quot;)

Set objFSO              = WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)

Do
    Set objSWbemObjectEx = objSWbemEventSource.NextEvent()
    
    Set objTS = objFSO.OpenTextFile(&quot;c:\MyLog.txt&quot;, ForAppending, True, TristateTrue)
    
    With objSWbemObjectEx.TargetInstance
        objTS.WriteLine Now() &amp; &quot; &quot; &amp; _
            .Name &amp; &quot; &quot; &amp; _
            .ProcessID &amp; &quot; &quot; &amp; _
            .ParentProcessID &amp; &quot; &quot; &amp; _
            .ExecutablePath &amp; &quot; &quot; &amp; _
            .CommandLine
    End With
    
    objTS.Close
    
    Set objTS = Nothing
Loop

Set objFSO             = Nothing

Set collSWbemObjectSet = Nothing
Set objSWbemServicesEx = Nothing
Set objSWbemLocator    = Nothing

WScript.Quit 0</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-01-18T10:25:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55777#p55777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55775#p55775" />
			<content type="html"><![CDATA[<p>Ну без ГУЕв. Которая бы просто писала себе по-тихонечку и все</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2012-01-18T09:56:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55775#p55775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55774#p55774" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DnsIs пишет:</cite><blockquote><p>…невидимку.</p></blockquote></div><p>Таких не бывает <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-01-18T09:49:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55774#p55774</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55771#p55771" />
			<content type="html"><![CDATA[<p>Хотелось бы прогу-невидимку.</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2012-01-18T09:32:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55771#p55771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55770#p55770" />
			<content type="html"><![CDATA[<p>OFF: <strong>DnsIs</strong>, проще всего — на <a href="http://ru.wikipedia.org/wiki/Process_Monitor">Process Monitor</a> (<a href="http://technet.microsoft.com/en-us/sysinternals/bb896645">Process Monitor</a>) с установленным фильтром «Operation = Process Create+Process Start+Process Exit». А при установленном параметре «Enable Boot logging» покажет и всё, что происходит при загрузке.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2012-01-18T09:21:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55770#p55770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ведение лога запускаемых программ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=55769#p55769" />
			<content type="html"><![CDATA[<p>Посоветуйте пожалуйста, на каком языке лучше написать скриптик, который бы вел лог запускаемых файлов на компе.</p><p>Ну и вкратце алгоритм, если можно.</p><p>Заранее благодарю.</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2012-01-18T09:08:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=55769#p55769</id>
		</entry>
</feed>
