How do you call a method?
- From: OldDog <mikef2691@xxxxxxxxxxx>
- Date: Tue, 5 May 2009 14:34:49 -0700 (PDT)
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!
.
- Follow-Ups:
- Re: How do you call a method?
- From: Alex K. Angelopoulos
- Re: How do you call a method?
- Prev by Date: Re: CreateObject Failing
- Next by Date: Findout shortcut from which script was launched ?
- Previous by thread: CreateObject Failing
- Next by thread: Re: How do you call a method?
- Index(es):
Relevant Pages
|