Search found 14044 matches

by jvierra
Thu Jun 12, 2008 3:56 am
Forum: VBScript
Topic: Convert logs to Event Logs
Replies: 7
Views: 1894

Convert logs to Event Logs

Then you are out of luck. The best I can think of is to write a C program that can create a binary event log file that has teh right structure and you data then mount it to the system. The EL subsytem was not designed to do what you are trying to do so it will be an uphill battle. LogParser should a...
by jvierra
Thu Jun 12, 2008 2:42 am
Forum: VBScript
Topic: Convert logs to Event Logs
Replies: 7
Views: 1894

Convert logs to Event Logs

As I noted before you can't load Event Logs like a database.

You could monitor the original log files using "Baretail' or other utility and insert the records using LogEvent.
by jvierra
Wed Jun 11, 2008 10:24 pm
Forum: VBScript
Topic: Saved EventLog Query
Replies: 2
Views: 703

Saved EventLog Query

From EventVwr select "Open Log File" from right context menu. Search for the saved event log, select a type and give it a mounted name and it will open and mount. You can now query this log just like any other event log.

by jvierra
Wed Jun 11, 2008 8:10 am
Forum: VBScript
Topic: Export Computer Accounts from AD
Replies: 2
Views: 3658

Export Computer Accounts from AD

joel's idea is nice but WinNT doesn't give you much and won't do what you asked. To get a list by OU you can use the ADSI Provider for ADO and do a subtree search using the aDSPath of the OU you need to search through as the starting point. If you jsut want to know the NETBIOS names of all computers...
by jvierra
Wed Jun 11, 2008 4:31 am
Forum: VBScript
Topic: Convert logs to Event Logs
Replies: 7
Views: 1894

Convert logs to Event Logs

Look into LogParser. It can parse any kind of Windows log.
http://www.iis.net/downloads/default.as ... g=6&i=1287
by jvierra
Wed Jun 11, 2008 3:25 am
Forum: VBScript
Topic: Convert logs to Event Logs
Replies: 7
Views: 1894

Convert logs to Event Logs

Using the System Event Logs like a database sounds like a great idea. Many have tried this in teh past. It's not a good idea. You will not be able to do what you like. The "LogEvent" utility and other utilities and API calls allow you to write an event but, as you have discovered, the event is time ...
by jvierra
Tue Jun 10, 2008 7:15 am
Forum: VBScript
Topic: Need script to run only at first login, not EVERY1
Replies: 3
Views: 3591

Need script to run only at first login, not EVERY1

mohtaw - it is not a solution for the users problem and will not work as you expect. The "runonce" key will execute only on a machine set up for "first logons". This is useful in terminal server environments and is useful for installation packages where some initial configuration needs to be done on...
by jvierra
Tue Jun 10, 2008 1:00 am
Forum: VBScript
Topic: Script to retrive the file information in a system
Replies: 4
Views: 1635

Script to retrive the file information in a system

You only need:
Set PFolder = oFSO.GetFolder("C:")

Then use Huntseckers code to recurse.
by jvierra
Sun Jun 08, 2008 6:27 am
Forum: Windows PowerShell
Topic: working within arrays
Replies: 3
Views: 1967

working within arrays

$name = "abc1234","bd3456","dsxcev6789"
$name|%{$_.SubString($_.length-4,4)}
by jvierra
Fri Jun 06, 2008 7:44 am
Forum: VBScript
Topic: Query registry on computer list
Replies: 7
Views: 1982

Query registry on computer list

By simplifying and combining things into functions we are able to make the main code loop much simpler. The logging code has all been moved to one logging function which will allow for central control over what is logged. You can extend the function by adding arguments that can be used to filter and...