Search found 14484 matches

by jvierra
Wed Jun 06, 2007 7:02 am
Forum: VBScript
Topic: Where Clause
Replies: 6
Views: 3347

Where Clause

This will get you started.

Set wmi = GetObject("winmgmts://./root/cimv2") Set col = wmi.ExecQuery("select * from Win32_OperatingSystem") For Each os In col MsgBox os.Caption Next
by jvierra
Wed Jun 06, 2007 6:35 am
Forum: VBScript
Topic: Where Clause
Replies: 6
Views: 3347

Where Clause

You can't match %server% with a WMI query. You have to get teh caption and use "InStr" to see if the string is in teh caption.

by jvierra
Wed Jun 06, 2007 6:24 am
Forum: Other Scripting Languages
Topic: QueryALL
Replies: 4
Views: 6529

QueryALL

Jef is saying that the UI - the IE HTML form - is being blocked from updates until all of teh scripts have finished running. This makes it appear like the interface is dead whil teh scripts execute. My suggestion was to use teh "window'timer" metod to create a timer that call a sub. I will look arou...
by jvierra
Wed Jun 06, 2007 5:55 am
Forum: Other Scripting Languages
Topic: QueryALL
Replies: 4
Views: 6529

QueryALL

Use the time to schedulte each test. The timer will create events that will let the browser refresh and sho each steps result as soon as it finishes. This will give the user positive feedback. Set teh tier for 100 ms and give it the sub to run on completion. Have each timer schedule the next test in...
by jvierra
Wed Jun 06, 2007 5:03 am
Forum: VBScript
Topic: Where Clause
Replies: 6
Views: 3347

Where Clause

You cannot do this from a GPO except if it is an admin loggong on. Users cannot normally alter teh contents of groups. If you want a script to run only on certain types of machines you can do this using a Group Policy Filter. If machines are separated into OUs that reflect their roles then you could...
by jvierra
Tue Jun 05, 2007 2:27 pm
Forum: VBScript
Topic: Displaying directory structure using text/ascii
Replies: 8
Views: 9386

Displaying directory structure using text/ascii

Good luck on the S4ecurity Descriptors. Consider using SUBINACL (Resource Kit) to get teh display as SDDL. The binary form is pretty nasty to display. SUBINACL returns a file like this: +File c:Documents and Settings /sddl=O:BAG:SYD:(A;;FA;;;SY)(A;;FA;;;BA)(A;;0x1200a9;;;BU)(A;;0x1200a9;;;PU)(A;;0x1...
by jvierra
Tue Jun 05, 2007 10:58 am
Forum: VBScript
Topic: How to suppress MS Word window in spell check scri
Replies: 4
Views: 4830

How to suppress MS Word window in spell check scri

Sorry. I don't have an example in VBS. I posted the link to the code example but it's in C#. Basicall you hand a word to teh correcting method and it hands back a list of possible corrections that you can choose from. I would look it up in the SDK. What you are tryig to do will work with the code yo...
by jvierra
Tue Jun 05, 2007 8:08 am
Forum: VBScript
Topic: Displaying directory structure using text/ascii
Replies: 8
Views: 9386

Displaying directory structure using text/ascii

function DisplayFolders( nTablEvel, oFolders ) nTabLevel - nTabLevel + 1 ' call next level with this if oFolders.Folders <> Nothing Then DisplayFolders nTabLevel, oFolders.Folders End If ''''' End Function Call recursively and increment nTabLevel at the beginning of the call. This can then be used t...
by jvierra
Mon Jun 04, 2007 9:01 am
Forum: VBScript
Topic: I'm stuck... emumerate reg key's
Replies: 4
Views: 3607

I'm stuck... emumerate reg key's

The registry object is scoped global but re-used in the recursion. It needs to be scoped local to teh function so it gets recreated on each call.

Each level of teh function call has to create a new object that is defined in that instance of teh function.

This is a common recursion issue.
by jvierra
Mon Jun 04, 2007 4:32 am
Forum: VBScript
Topic: I'm stuck... emumerate reg key's
Replies: 4
Views: 3607

I'm stuck... emumerate reg key's

I ran your script in a domain and had mno problems. Are you sure all of the machines can be contacted remotely?