473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Enumerate Drive letters on remote computer and freespace on HD

Hi,

Any one knows a way to get Hard Drive letters and free space (C: / D: ....) from a remote computer?

I'm developing one application that needs to know if a second drive exist on that system and i need to know the free space from the root drive and from the second drive in case of exist.
This application will run from a DC that has admin rights on remote computers.

I’m using VB.net not C# if some one cold point me to one example or give me one I appreciate.

I have google a lot and didn’t find anything like what I need.

Regards,
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Mar 27 '07 #1
1 3972
On Tue, 27 Mar 2007 02:46:45 -0700, Miguel Pires wrote:
>Hi,

Any one knows a way to get Hard Drive letters and free space (C: / D: ....) from a remote computer?

I'm developing one application that needs to know if a second drive exist on that system and i need to know the free space from the root drive and from the second drive in case of exist.
This application will run from a DC that has admin rights on remote computers.

I’m using VB.net not C# if some one cold point me to one example or give me one I appreciate.

I have google a lot and didn’t find anything like what I need.

Regards,
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
See the System.Management namespace in your MSDN help.

You need to get a collection of Win32_LogicalDisk objects. From the
first help page in MSDN, it looks like you need to populate a
ManagementObjectCollection.

Be aware though, there are likely to be security restrictions in place
to stop you doing this sort of thing against a remote computer unless
you are an administrator.

More info online:

http://msdn2.microsoft.com/en-us/library/ms257340.aspx
--
Philip Daniels
Mar 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave | last post by:
I have an application where I am providing the user the ability to select or create a folder on a domain, using SHBrowseForFolder. When the user selects/creates a folder on a remote computer, it...
2
by: Daniel | last post by:
when i use stream writer to write to a shared folder, and the network card of that remote computer is disabled in the middle of the write then reenabled later. every time i try to write to that...
3
by: Lamont | last post by:
VB.NET Can anyone tell me how I can get the Drive Space information from a remote computer on the same domain and physical network? Primarily I need the Total disk space and space used or free...
7
by: Jeff Harbin | last post by:
I have an Access 2000 database which saves (exports) of copy of the main data table each time it is opened. It continually over-writes the same file so I've got a back-up if anything were to...
1
by: Bhavya Shah | last post by:
Hello All, I am facing a serious problem while copying a file to a remote computer programmatically. What I want to do: I want to connect to a remote computer and copy a file to the remote...
1
by: Uzi Baruch | last post by:
Hi! I need to get file information from a remote computer, the thing is, i need to use different credentials to get that information. My question is: how the add the credentials to my...
4
by: Von Thep via DotNetMonster.com | last post by:
How can I use WMI with VB.NET to get a remote computers directory size? How can I use a unc_path within WMI? Previously I used FileInfo and DirectoryInfo but this method takes too long because...
3
by: Tracid83 | last post by:
Hi, I would like to enumerate user from remote computer connected to network. I don't use wmi service because all service necessary don't start. I just know IP address and Netbios name. Do you...
0
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.