Search found 14046 matches

by jvierra
Thu Jul 31, 2008 7:00 am
Forum: VBScript
Topic: How to find all file shares on a cluster?
Replies: 4
Views: 2314

How to find all file shares on a cluster?

Here is a good set of clues uploads/2491/ClusWMI.zip It's teh MOF for the classes for clustering. It will have all of teh properties and methods. for all classes. Use it to find items that you can google for help. Much of this is new and undocumented or poorly documented. The Platform SDK has more d...
by jvierra
Thu Jul 31, 2008 5:06 am
Forum: VBScript
Topic: looking in a text file
Replies: 2
Views: 772

looking in a text file

Sorry - it was just a simple example to point you in the right direction. There were two typos (my fault) but here is teh good code.


Set fso = CreateObject("Scripting.FileSystemObject")Set file = fso.OpenTextFile("pc.txt")while Not file.AtEndOfStream WScript.Echo file.ReadLine()Wend
by jvierra
Thu Jul 31, 2008 4:32 am
Forum: VBScript
Topic: How to find all file shares on a cluster?
Replies: 4
Views: 2314

How to find all file shares on a cluster?

The cluster classes are in //root/MSCluster_Resource. The shares on the cluster are just shares I believe. If you enumerate the shares then they are on the cluster. To do it with WMI here is teh PowerSHell code (the easiest code) Get-WmiObject -namespace rootmscluster -computername CLUSTERNAME -clas...
by jvierra
Wed Jul 30, 2008 7:25 am
Forum: VBScript
Topic: Check for an installed program
Replies: 3
Views: 2261

Check for an installed program

Harry Well. You'll have to do a little work to try and understand the code I have posted. You are looking for installed software. This code will create a comma separted file of all software elements reportable by WMI. You can then look in the file for the software by hand or use a Excel or some othe...
by jvierra
Tue Jul 29, 2008 12:28 am
Forum: Windows PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 33389

help with Get-Mailbox methods

Hi Marco

Too bad this forum software doesn't implement a "synopsis" for long running topics. It culd also jump to the end. WHen you just click into a topic it is hard to tell that there are many pages.
by jvierra
Tue Jul 29, 2008 12:10 am
Forum: Windows PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 33389

help with Get-Mailbox methods

Marco

It works - looks liike some kind of interesting typo.

The need for teh "foreach" is because the "row" gets re-wrapped in a collection when passed in the pipeline. Seems to be a charcateristic of rowsets.

by jvierra
Mon Jul 28, 2008 7:04 am
Forum: VBScript
Topic: Just a beginner with a question
Replies: 4
Views: 1236

Just a beginner with a question

YOu can still admin them but all effort is now using PowerShell becuase it is more secure. Many things will not be documented. Experienced VBscripters and admins will probably be able to figure it out but some things will force you to use PowerShell due to security settings. You can't have both comp...
by jvierra
Mon Jul 28, 2008 3:25 am
Forum: VBScript
Topic: Just a beginner with a question
Replies: 4
Views: 1236

Just a beginner with a question

VBScript will remain usable for many years. Much of the answer would have to do with what you will need scripting for. If you are gong to be servicing WS2008 and Exchange 2007 then you should learn PowerShell. If you are running mostly WS2000/3 and Exchange 2000/3 then vbscript will do just fine. If...
by jvierra
Fri Jul 25, 2008 6:23 am
Forum: Windows PowerShell
Topic: help with Get-Mailbox methods
Replies: 20
Views: 33389

help with Get-Mailbox methods

Does $table[0] give you just the first row?

What does $table[0]|gm look like?