Support Forums

Search found 10354 matches

by jvierra
Wed Dec 09, 2009 2:44 am
Forum: Windows PowerShell
Topic: Script to find servers in AD
Replies: 18
Views: 2739

Script to find servers in AD

If that works then the previous GC code should have worked. YOu must have had a typo somewhere. THat's OK as this will also do what you need.
by jvierra
Tue Dec 08, 2009 1:25 pm
Forum: VBScript
Topic: Need help designing script
Replies: 3
Views: 297

Need help designing script

YOu have to formulate the rules of teh search in english first. We can then convert that to logic.

From your post it is too difficult to know the exact rules.


There must be some root folder to start with that is constant.


jvierra2009-12-08 20:25:38
by jvierra
Tue Dec 08, 2009 8:03 am
Forum: VBScript
Topic: Need help designing script
Replies: 3
Views: 297

Need help designing script

DOn't talk about Al Gore's Rhythm here. This is for scripting. As for the script - I suggest using Com_DataFile and set the folder, drive and use pattern match for teh file name. SELECT * from Cim_Datafile WHERE drive = 'c:' and path ='' and extension = 'ini' The above will return boot.ini from teh ...
by jvierra
Tue Dec 08, 2009 4:12 am
Forum: Windows PowerShell
Topic: Script to find servers in AD
Replies: 18
Views: 2739

Script to find servers in AD

This
$searcher.FindAll()|%{$_.Properties.name}


Finds all computers in the GC in my forest.


Try listing all computers found before filtering for name parts.


by jvierra
Tue Dec 08, 2009 1:12 am
Forum: Windows PowerShell
Topic: Script to find servers in AD
Replies: 18
Views: 2739

Script to find servers in AD

Are you sure you have permissions on all of the other domains? You still need to be able to authenticate on a domain in rder to read it.

by jvierra
Mon Dec 07, 2009 7:44 am
Forum: VBScript
Topic: Efficiency
Replies: 17
Views: 1999

Efficiency

I am a "zero-degree" black and orange scripter belt. Honor of supreme script master.


I started scriupting before teh PC was born.


VBscript was a trivial add-on.


by jvierra
Mon Dec 07, 2009 5:55 am
Forum: VBScript
Topic: Read and report from logfiles
Replies: 5
Views: 460

Read and report from logfiles

Use command redirectors as with an commandline program. YOu can filter output with this one FINDSTR [/E] [/L] [/R] [/S] [/X] [/V] [/N] [/M] [/O] [/F:file]         [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]         strings [[drive:][path]filename[ ...]]   /B         Matche...
by jvierra
Mon Dec 07, 2009 5:38 am
Forum: VBScript
Topic: Read and report from logfiles
Replies: 5
Views: 460

Read and report from logfiles

First rule of scripting/administration - KISS! Always look at the builtin OS utilities first. This will save many hundreds of wasted hours and errors. If you just want to learn xcripting then this is not the best problem to start with. Start with: 1. How to enumerate files in script. 2. How to read ...
by jvierra
Mon Dec 07, 2009 5:15 am
Forum: VBScript
Topic: Efficiency
Replies: 17
Views: 1999

Efficiency

As best I can see the script runs a remote script - startup.vbs - but it is running it incorrectly as it is running it from a share and should - must - run locally or you will get errors. The remote script is not specified so we don't have a clue what is happening. The code that you have checks for ...
by jvierra
Mon Dec 07, 2009 4:56 am
Forum: VBScript
Topic: Efficiency
Replies: 17
Views: 1999

Efficiency

You say this is a remote script? If ist is to run remotely then it cannot have a GUI or it will fail under most circumstances.


Go to advanced search