Announcement

Collapse
No announcement yet.

Exporting disk space

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exporting disk space

    Hi! I am trying to export all server disk space and the capacity for each drive.

    I have the export set up and am able to watch it go to each server and state "Exporting...Exporting disk information" The list in the view appears to include all the servers in the domain.

    However, I have asked to export this to a text file. When the export is complete, the text file only has a handful of the servers. Why would this file be missing the information? If permissions problems were an issue, wouldn't it state the server name and access denied or similar?

    Any suggestions would be wonderful! Thanks.

  • #2
    Re: Exporting disk space

    It sounds like it might be a permissions issue. This function must use the admin shares (C$, D$, etc) and if you don't have acccess to those shares you won't get any information returned.

    Comment


    • #3
      Re: Exporting disk space

      The drive export does not return errors, as error reporting for this is unreliable. You can maybe test what is happening if you go to a command prompt and issue the command:

      dir \\server\c$

      replace 'server' with the name of one of the servers that is not showing anything. Use the same name format as you see in exporter, ie netbios vs. dns.
      Kevin Stanush
      SystemTools Software Inc.

      Comment


      • #4
        Re: Exporting disk space

        I have a script that will do this but you must ensure that your drives are all labeled. Not that it is any better then Hyena. I thought maybe you might want to ensure the drives have a label. I could be way off base on this but thought I would mention it.

        Comment


        • #5
          Re: Exporting disk space

          Hyena does not actually get the space on a 'drive' but rather a share. The share can actually be on any point on the drive. So, if you were to create a directory off the root of each drive for 'diskspace' and shared this with a share name of 'diskspace' you could give either Hyena or Exporter Pro a custom drive mask of:

          %s\diskspace

          And Hyena/Exporter Pro would give you the space on the entire drive. By default, Hyena just looks at each drive letter, replaces the : with a $, and uses the admin share on the drive to get the space.
          Kevin Stanush
          SystemTools Software Inc.

          Comment


          • #6
            Re: Exporting disk space

            If you're trying to get just the drive space and available space, have you looked into WMI?

            ...determine how much free space is available on a drive? Use the Win32_LogicalDisk class and the FreeSpace property.
            strComputer = "."
            Set objWMIService = GetObject("winmgmts:" _
            & "{impersonationLevel=impersonate}!\" _
            & strComputer & "\root\cimv2")
            Set colDisks = objWMIService.ExecQuery _
            ("Select * from Win32_LogicalDisk")
            For Each objDisk in colDisks
            Wscript.Echo "DeviceID: " & objDisk.DeviceID
            Wscript.Echo "Free Disk Space: " _
            & objDisk.FreeSpace
            Next

            ...determine the size of a drive? Use the Win32_LogicalDisk class, and the Size property.
            strComputer = "."
            Set objWMIService = GetObject("winmgmts:" _
            & "{impersonationLevel=impersonate}!\" _
            & strComputer & "\root\cimv2")
            Set colDisks = objWMIService.ExecQuery _
            ("Select * from Win32_LogicalDisk")
            For Each objDisk in colDisks
            Wscript.Echo "DeviceID: " & objDisk.DeviceID
            Wscript.Echo "Disk Size: " & objDisk.Size
            Next

            Hope this helps!

            Joel

            Comment

            Working...
            X