8 Replies - 3605 Views - Last Post: 10 November 2011 - 09:59 PM Rate Topic: -----

#1 castro  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 51
  • Joined: 12-November 05

Getting the disk space of a remote and local computer

Posted 11 April 2011 - 03:08 AM

Hello Guys

i was thinking will it be possible to get a disk space of a remote and local machine using asp.net 2008?


i found some information but don't no how to in-corporate in asp.net
http://msdn.microsof...v=vs.85%29.aspx

thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Getting the disk space of a remote and local computer

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9426
  • View blog
  • Posts: 35,422
  • Joined: 12-June 08

Re: Getting the disk space of a remote and local computer

Posted 11 April 2011 - 07:04 AM

What do you mean "a remote computer"? Is this computer one at random? One that is known and is running at trusted service ready to divulge this information? On face I would say 'no' just because of the inherent security risk.
Was This Post Helpful? 0
  • +
  • -

#3 BrairMoss  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 15
  • View blog
  • Posts: 81
  • Joined: 13-April 10

Re: Getting the disk space of a remote and local computer

Posted 11 April 2011 - 07:07 AM

castro,

This should be possible if there is a database that an store the disk requirements and every once in a while updates the amount used. I am not sure if a web browser/application can directly access system information like this.

However I found a source on the ASP.net forums that may be of help to you.
Access remote computer system information.

//BrairMoss
Was This Post Helpful? 0
  • +
  • -

#4 castro  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 51
  • Joined: 12-November 05

Re: Getting the disk space of a remote and local computer

Posted 11 April 2011 - 08:50 AM

Okay
so how about this.
if i develop a windows application write information to a flat file and then use web to read from file after delete the file for security reasons and use the web to save it on local pc.

so then if i am to go by this. how will it be implemented on vb.net application

castro
Was This Post Helpful? 0
  • +
  • -

#5 castro  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 51
  • Joined: 12-November 05

Re: Getting the disk space of a remote and local computer

Posted 12 April 2011 - 03:32 AM

View Postmodi123_1, on 11 April 2011 - 08:04 AM, said:

What do you mean "a remote computer"? Is this computer one at random? One that is known and is running at trusted service ready to divulge this information? On face I would say 'no' just because of the inherent security risk.

yes a remote PC that is over a network? i have a lot of work stations and i want to see their disk spaces over a period of time and cpu usage
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9426
  • View blog
  • Posts: 35,422
  • Joined: 12-June 08

Re: Getting the disk space of a remote and local computer

Posted 12 April 2011 - 07:05 AM

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.

Example:
http://www.admintoyssuite.com/
Was This Post Helpful? 0
  • +
  • -

#7 castro  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 51
  • Joined: 12-November 05

Re: Getting the disk space of a remote and local computer

Posted 13 April 2011 - 04:35 AM

View Postmodi123_1, on 12 April 2011 - 08:05 AM, said:

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.

Example:
http://www.admintoyssuite.com/

but is it not the same logic they use .. for me i am only interested in disk space...
Was This Post Helpful? 0
  • +
  • -

#8 castro  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 51
  • Joined: 12-November 05

Re: Getting the disk space of a remote and local computer

Posted 15 April 2011 - 07:08 AM

View PostBrairMoss, on 11 April 2011 - 08:07 AM, said:

castro,

This should be possible if there is a database that an store the disk requirements and every once in a while updates the amount used. I am not sure if a web browser/application can directly access system information like this.

However I found a source on the ASP.net forums that may be of help to you.
Access remote computer system information.

//BrairMoss

how about using batch scripts is it possible
Was This Post Helpful? 0
  • +
  • -

#9 hightechpost  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-November 11

Re: Getting the disk space of a remote and local computer

Posted 10 November 2011 - 09:59 PM

View Postcastro, on 13 April 2011 - 04:35 AM, said:

View Postmodi123_1, on 12 April 2011 - 08:05 AM, said:

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.


http://www.hightechpost.blogspot.com

but is it not the same logic they use .. for me i am only interested in disk space...

Quote

hi, the same thing i am looking for desperately, but no luck for long time, check below code i hope this is correct but i am still not able to connect/get info to server...


    Public Overloads Shared Function Main( _
    ByVal args() As String) As Integer
        Dim scope As ManagementScope
        scope = New ManagementScope( _
            "\\serverIP\root\cimv2")
        scope.Connect()

        Dim query As ObjectQuery
        query = New ObjectQuery( _
            "SELECT * FROM Win32_OperatingSystem")
        Dim searcher As ManagementObjectSearcher
        searcher = _
            New ManagementObjectSearcher(scope, query)

        Dim queryCollection As ManagementObjectCollection
        queryCollection = searcher.Get()

        Dim m As ManagementObject
        For Each m In queryCollection
            ' Display the remote computer information
            Console.WriteLine("Computer Name : {0}", _
                m("csname"))
            Console.WriteLine("Windows Directory : {0}", _
                m("WindowsDirectory"))
            Console.WriteLine("Operating System: {0}", _
                m("Caption"))
            Console.WriteLine("Version: {0}", m("Version"))
            Console.WriteLine("Manufacturer : {0}", _
                m("Manufacturer"))
        Next

        Return 0
    End Function



View Posthightechpost, on 10 November 2011 - 09:54 PM, said:

View Postcastro, on 13 April 2011 - 04:35 AM, said:

View Postmodi123_1, on 12 April 2011 - 08:05 AM, said:

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.


http://www.hightechpost.blogspot.com

but is it not the same logic they use .. for me i am only interested in disk space...

Quote

hi, the same thing i am looking for desperately, but no luck for long time, check below code i hope this is correct but i am still not able to connect/get info to server...


    Public Overloads Shared Function Main( _
    ByVal args() As String) As Integer
        Dim scope As ManagementScope
        scope = New ManagementScope( _
            "\\serverIP\root\cimv2")
        scope.Connect()

        Dim query As ObjectQuery
        query = New ObjectQuery( _
            "SELECT * FROM Win32_OperatingSystem")
        Dim searcher As ManagementObjectSearcher
        searcher = _
            New ManagementObjectSearcher(scope, query)

        Dim queryCollection As ManagementObjectCollection
        queryCollection = searcher.Get()

        Dim m As ManagementObject
        For Each m In queryCollection
            ' Display the remote computer information
            Console.WriteLine("Computer Name : {0}", _
                m("csname"))
            Console.WriteLine("Windows Directory : {0}", _
                m("WindowsDirectory"))
            Console.WriteLine("Operating System: {0}", _
                m("Caption"))
            Console.WriteLine("Version: {0}", m("Version"))
            Console.WriteLine("Manufacturer : {0}", _
                m("Manufacturer"))
        Next

        Return 0
    End Function


Quote

hey friends this is very disappointing, that thread has no reply for long time, why is not yet solved or programmers have less interst in coding...


View Posthightechpost, on 10 November 2011 - 09:58 PM, said:

View Postcastro, on 13 April 2011 - 04:35 AM, said:

View Postmodi123_1, on 12 April 2011 - 08:05 AM, said:

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.

but is it not the same logic they use .. for me i am only interested in disk space...

Quote

hi, the same thing i am looking for desperately, but no luck for long time, check below code i hope this is correct but i am still not able to connect/get info to server...

regards
hightechpost
http://www.hightechpost.blogspot.com


    Public Overloads Shared Function Main( _
    ByVal args() As String) As Integer
        Dim scope As ManagementScope
        scope = New ManagementScope( _
            "\\serverIP\root\cimv2")
        scope.Connect()

        Dim query As ObjectQuery
        query = New ObjectQuery( _
            "SELECT * FROM Win32_OperatingSystem")
        Dim searcher As ManagementObjectSearcher
        searcher = _
            New ManagementObjectSearcher(scope, query)

        Dim queryCollection As ManagementObjectCollection
        queryCollection = searcher.Get()

        Dim m As ManagementObject
        For Each m In queryCollection
            ' Display the remote computer information
            Console.WriteLine("Computer Name : {0}", _
                m("csname"))
            Console.WriteLine("Windows Directory : {0}", _
                m("WindowsDirectory"))
            Console.WriteLine("Operating System: {0}", _
                m("Caption"))
            Console.WriteLine("Version: {0}", m("Version"))
            Console.WriteLine("Manufacturer : {0}", _
                m("Manufacturer"))
        Next

        Return 0
    End Function



View Posthightechpost, on 10 November 2011 - 09:54 PM, said:

View Postcastro, on 13 April 2011 - 04:35 AM, said:

View Postmodi123_1, on 12 April 2011 - 08:05 AM, said:

Yup - unless you go some 'back office' component installed on each PC you may be better off with a commercial Windows Admin Suite.


http://www.hightechpost.blogspot.com

but is it not the same logic they use .. for me i am only interested in disk space...

Quote

hi, the same thing i am looking for desperately, but no luck for long time, check below code i hope this is correct but i am still not able to connect/get info to server...


    Public Overloads Shared Function Main( _
    ByVal args() As String) As Integer
        Dim scope As ManagementScope
        scope = New ManagementScope( _
            "\\serverIP\root\cimv2")
        scope.Connect()

        Dim query As ObjectQuery
        query = New ObjectQuery( _
            "SELECT * FROM Win32_OperatingSystem")
        Dim searcher As ManagementObjectSearcher
        searcher = _
            New ManagementObjectSearcher(scope, query)

        Dim queryCollection As ManagementObjectCollection
        queryCollection = searcher.Get()

        Dim m As ManagementObject
        For Each m In queryCollection
            ' Display the remote computer information
            Console.WriteLine("Computer Name : {0}", _
                m("csname"))
            Console.WriteLine("Windows Directory : {0}", _
                m("WindowsDirectory"))
            Console.WriteLine("Operating System: {0}", _
                m("Caption"))
            Console.WriteLine("Version: {0}", m("Version"))
            Console.WriteLine("Manufacturer : {0}", _
                m("Manufacturer"))
        Next

        Return 0
    End Function


Quote

hey friends this is very disappointing, that thread has no reply for long time, why is not yet solved or programmers have less interst in coding...

regards
hightechpost
http://www.hightechpost.blogspot.com

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1