How do you call a method?

Tech-Archive recommends: Speed Up your PC by fixing your registry



I am trying this another way;

I am writting ascrit that uses the following;

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array(".")
For Each strComputer In arrComputers
WScript.Echo
WScript.Echo "=========================================="
WScript.Echo "Computer: " & strComputer
WScript.Echo "=========================================="

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root
\CIMV2\Security\MicrosoftVolumeEncryption")
Set colItems = objWMIService.ExecQuery("SELECT * FROM
Win32_EncryptableVolume", "WQL", _
wbemFlagReturnImmediately +
wbemFlagForwardOnly)

So far, so good.

Win32_EncryptableVolume has a method called GetEncryptionMethod().

How do I call this method and get its properties?

OldDog - Please don't make me write this in PowerShell!
.



Relevant Pages

  • Re: WMI slow
    ... Const wbemFlagReturnImmediately = &h10 ... Const wbemFlagForwardOnly = &h20 ... For Each strComputer In arrComputers ... Set colItems = objWMIService.ExecQuery("SELECT * FROM ...
    (microsoft.public.scripting.vbscript)
  • Counting items in a collection
    ... Const wbemFlagForwardOnly = &h20 ... For Each strComputer In arrComputers ... Set colItems = objWMIService.ExecQuery("SELECT Name, ...
    (microsoft.public.windows.server.scripting)
  • RE: Identify mapped drives on a workstation
    ... Const wbemFlagReturnImmediately = &h10 ... Const wbemFlagForwardOnly = &h20 ... For Each strComputer In arrComputers ... > Is it possible to querry a workstation to see what the drive mappings ar for ...
    (microsoft.public.windows.server.scripting)
  • Re: How to logon to computers?
    ... Const wbemFlagForwardOnly = &h20 ... For Each strComputer In arrComputers ... Set colItems = objWMIService.ExecQuery("SELECT * FROM ... > what if the user is domain admin? ...
    (microsoft.public.windows.server.scripting)
  • Re: Can you retrieve information like BIOS versions, serial numbers, etc? Im
    ... Straight from the ScriptomaticV2 ... Const wbemFlagForwardOnly = &h20 ... For Each strComputer In arrComputers ...
    (microsoft.public.scripting.vbscript)