Re: Enumerate volumes on a server



To enumreate volumes the server is offering or sharing via a NAS protocol, use NetShareEnum

To enumerate volumes attached to the server, use WMI. Use your favorite search web site and you should find plenty of WMI scripting examples. You will have to work a bit to tranlate the scripting examples into C or C++ code but its doable. This is better than inventing your own client/server protocol, installing your own agent and then having that agent locally enumerate the volumes

Dilip www.msftmvp.com

"JRB" <john@xxxxxxxxxxxxxxx> wrote in message news:7f545840-0384-4b0c-abe7-559edfc46cb0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks but I need to obtain the volumes within a program, hence I'm
after the relevant APIs to do this. I dont want to have to spawn
external programs then trawl through their output.

TIA, John

On Jun 27, 8:16 pm, "Edwin vMierlo [MVP]"
<EdwinvMie...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
on the command line "mountvol.exe"

will that get you what you want ?

"JRB" <j...@xxxxxxxxxxxxxxx> wrote in message

news:ef4acfeb-b6c2-49d3-885d-217e39e30a03@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



> What is the recommended method for enumerating the volumes on a
> particular server? FindFirstVolume et al appear to work only on the
> local machine.

> TIA, John- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: Question about WMI connection and concurrent use
    ... My only server, which is allowed to make snmp queries [which I call the ... is one connection able to serve multiple outgoing ... Monitor WMI to see how many threads it is using and then ... > management server that can have multiple instances in order to gain ...
    (microsoft.public.win32.programmer.wmi)
  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)
  • RE: BizTalk WMI performance issue
    ... If the servers are Windows 2003 SP1 or earlier, ... a look at the following WMI patches included in Windows 2003 SP2. ... WMI service on a Windows XP SP2-based computer or a Windows Server 2003 ... Microsoft Online Community Support ...
    (microsoft.public.biztalk.server)
  • Re: Question about WMI connection and concurrent use
    ... Each one should act as an independent client to the proxy. ... It should run multiple threads - one ... WMI is multi-threaded and has an asynchronous ... >> My only server, which is allowed to make snmp queries [which I call the ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Group Policy Results Wizard
    ... downloading and running the WMI Diagnostic tool on my laptop. ... If you can't reach the WMI from the server you will want to try to reach it ... Charlotte SBS Group Leader - www.sbs-charlotte.com ... Business Server Windows Firewall" (not Small Business Server ...
    (microsoft.public.windows.server.sbs)