get client's security-log thru WIN2K GPO?

R

robin

Hi,

I am currently using WIn2000 SP4 Active Directory.
Clients are running on Win2K Profession SP4. All clients
are join to a Domain.


I have currently written a simple script using a SQL
statement to extract the system security log:

strComputer = "."
Set objWMI = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Security)}!
\\" _
& strComputer & "\root\cimv2")

strWMI = "SELECT * FROM Win32_NTLogEvent WHERE
(LogFile = 'Security')"

Question:
1)I want to implement this script program to a large
group of clients machine that is group under a domain.
Wonder if it is possible to implement this script through
a Active Directory Group Policy(GPO)?
If so, how can this be done?
2)Can I schedule a specific timing to run this script
through the GPO?
 
B

Brian Desmond [MVP]

Yes. You can assing it as a startup script in the computer config section of
a GPO. A startup script runs when the PC starts, but, if you wanted to
schedule it, you could assign a startup script which used the AT utility to
schedule running the event collection script.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
B

Brian Desmond [MVP]

Robin-

It's a command line utility for scheduling tasks. Run at /? to get the
options. I believe it's included with Windows, otherwise it's in the free
resource kit tools download.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top