Search found 13714 matches

by jvierra
Wed Jan 16, 2008 1:47 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

Great - I never tried that version of export before. Given the following from teh file: [Event Audit]AuditSystemEvents = 3AuditLogonEvents = 3AuditObjectAccess = 0AuditPrivilegeUse = 0AuditPolicyChange = 3AuditAccountManage = 3AuditProcessTracking = 0AuditDSAccess = 2AuditAccountLogon = 3CrashOnAudi...
by jvierra
Tue Jan 15, 2008 1:30 pm
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

I was sitting here working on something when it dawned on me that you can't get the information you want from W2K or from SecEdit. Here is what you will get from SecEdit: Mismatch - AuditSystemEvents.Mismatch - AuditLogonEvents.Mismatch - AuditPolicyChange. Analyze event audit settings. Any settings...
by jvierra
Tue Jan 15, 2008 11:20 am
Forum: Other Scripting Languages
Topic: DOC scripting Vs Window Scripting
Replies: 2
Views: 1657

DOC scripting Vs Window Scripting

We could give a better answer if you had a specific example of a task.

In any czse glad to be of help.
by jvierra
Tue Jan 15, 2008 11:11 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

This lineIf objitem.success Then etc...My question is, How come you don't have to do thisif objitem.success = True Thenetc..end if Because it's a boolean alredy (True/False) and the "if" statement takes any expression that resolves to a boolean. if something = True resolves to "True" when "something...
by jvierra
Tue Jan 15, 2008 6:55 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

I changed the code to give it to you the way you need. My first cut was just a demo of how to do the steps. This is what you are looking for with an added feature. strComputer = "." Set objWMIService = GetObject("winmgmts:" & strComputer & "rootrsopcomputer") Set colItems = objWMIService.ExecQuery("...
by jvierra
Mon Jan 14, 2008 8:56 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

The settings show which of teh audit settings are selected. It is possible for both to be true at the same time. The code concatenates the strings to produce teh output message. I use the string len to determine if the string has already been populated with the "Success" string and then add a comma ...
by jvierra
Mon Jan 14, 2008 4:48 am
Forum: Other Scripting Languages
Topic: DOC scripting Vs Window Scripting
Replies: 2
Views: 1657

DOC scripting Vs Window Scripting

The short answer is it depends on what you need to do. Normally a mixture of "Windows" scripting (WSH or vbscript) and "DOS" batch scripting is used for admin tasks. "DOS" batch scripting is simple and allows quick access to all command line programs with ease. FOr linear tasks with little decision ...
by jvierra
Mon Jan 14, 2008 3:36 am
Forum: VBScript
Topic: Help with Select Case Construction with root\rsop\
Replies: 10
Views: 4838

Help with Select Case Construction with root\rsop\

Your case statement is fine however this accomplish the outcome more easily. strComputer = "." Set objWMIService = GetObject("winmgmts:" & strComputer & "rootrsopcomputer") Set colItems = objWMIService.ExecQuery("Select * from RSOP_AuditPolicy") For Each objItem in colItems     If objItem.Success Th...
by jvierra
Sun Jan 13, 2008 4:39 am
Forum: VBScript
Topic: Changing File Properties
Replies: 7
Views: 2781

Changing File Properties

The problem with that solution is that it requies Ceative Soundblaster software to be installed. Windows has a control that is used to display extended file info for media files. It is part of WIA subsystem I believe. I had an example and it may be in teh ScriptVault. The control should be on all WX...