NOT using xp_cmdshell, Can we check free space of drives in windows servers?

Hello all,
I have a strange situation here(may not be to you), as per client security standards,
I should NOT use xp_cmdshell. Adding to this, I was asked to generate a report daily about drives and their free spaces.
Having with xp_cmshell, we have numerous ways to execute this task easily but
NO xp_cmshell. Also, I can't use xp_fixeddrives system proc because it doesn't show-up mounted drives.
So, it would be great if you can share any other possible options using SQLCMD, PowerShell, T-SQL scripts etc that we can get the drives list (including mount points, root directory(C$), Quorum drive, MSDTC drives) and their free spaces.
I tried a couple of ways like using  sys.dm_os_volume_stats() function which comes in SS2012. But, couldn't help.
Appreciate your help and time in regarding.
Thank you all!!

Is powershell an option for you?
If yes, its quite easy to come with PS script for this
see examples here
http://www.codeproject.com/Articles/757946/Retrieve-Disk-Space-of-Remote-Computers-using-Powe
http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/08/use-powershell-to-create-a-report-displaying-free-disk-space.aspx
As far as I know sys.dm_os_volume_stats  only gives the details ofabase files exist
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • After registration of 6 divices/apps I bought two readers. Now I cant not use them because of no free license. What can I do? Adobe does not answer my questions.

    After registration of 6 divices/apps I bought two readers. Now I cant not use them because of no free license. What can I do? Adobe does not answer my questions.

    Thanks too all the people who responded. . . . (noone)
    Got it sorted though. Seems that Apple has issues with multiple apple id's.
    Seems i had to somehow remember and use the original id i had when i first bought my 1st iPhone. . . .
    Even after that it was extremely hard to get my apps back on my PC.
    If anyone else has the same problem. . . .email Apple. Cya.

  • Using VBA Can we check the Font Testing in all the sheets (Arial)

    Team,
    Using VBA Can we check the Font Testing in all the sheets.
    Let us Assume the Font Type is Arial.
    I Need to create a File with Two Sheets.
    1) First Sheet
    a) Serial No
    b) Path of the Files ( Excel Files to check the Format)
    2) Second Sheet
    If the Font is not Arial.  We have to track the File Name (that we should get it from First Sheet Path Column) , Cell Number (ex: C3), Cell Value.
    Is that Possible?
    Thanks!
    Kiran

    Hi John,
    Thank you very much for your reply,
    But the above code is taking long time to run.
    Basically I have a Main file which calls set of files in a certain folder. When I click on Check format button I need to compare all the file mentioned in the Main file.
    When comparing the Main sheet should create a new sheet with all the Failures of Format checking Results.
    I mean which are NON-Arial. The newly created sheet should have 3 columns
    1) File Name
    2) Sheet Name
    3) Cell Name - Cell Value - Arial Font is not matching
    Main File Format of Sheet 1
    https://www.dropbox.com/s/kzoh1brbaf7e55r/Format_Checker_Main%20Sheet.jpg?dl=0
    Sheet 2
    This Sheet need to be created by Macro for Capturing the Failed Non-Arial ones.
    Many Thanks!
    Kiran

  • When not using EJBs can I make BD a Singleton and cache facade instances?

    Hi,
    In an application which does not use EJBs can I make BD(Business Delegate) a singleton?
    I was very sure about doing this but when I tried Google on the same subject the answers were'nt supportive of this but that was in the context of applications which used EJBs. And also item 4 in Effective Java isnt very supportive of caching Objects at the drop of a hat.
    When not using EJBs would it be an unnecessary thing to make BD a singleton and cahce Facade instances in a BD and DAO instances in a Facade? I am planning to use a array based blocking bounded buffer for the purposes of caching. Or would it be better to make both BD and a facade as SIngletons and just cache DAOs in a Facade?
    Any suggestion would be of good help to me.
    Thanks a lot.

    Not sure I understand all your design, but you seem
    to describe an architecture where requests are queued
    and handled serially.Sorry if I messed up while explaining it. No, it will not be handled serially. Since the BD is a singleton multiple threads can pass messages to it simulteanously, a bit like an object of the Action class in Struts. Since I dont see having any synchronized methods in a BD requests will be handled simulteanously.
    The impact on throughput of handling requests
    serially (as opposed to parallelizing them) probably
    outweights by far the cost of instantiating one more
    object per request...Yes, I understand that but as I explained above the reqests wont be handled serially.
    To be more clear, I am thinking of using any one of these two things:
    1) BD(Singleton)-->Facade(Singleton, caches DAOs in a thread safe data structure)
    2)1) BD(Singleton, caches Facade instances in a thread safe data structure)-->Facade(caches DAOs in a thread safe data structure).
    the thread safe data structure I am planning to have is a array based bounded buffer which blocks using wait and notify mechanism.
    Thank you for the reply.

  • How  can i check the space in the field.

    hi:
    how  can i check the space in the field.!
    for example:
    data: string(30) type c value 'sent ence'.
    search  string for space.
    if sy-subrc = 0.
    write: 'i am right'.
    endif.
    but the result is that it cann't check the space.
    so how can check the space in the field!!
    thank you very much!

    Hi,
    data: v_string(30) type c value 'sent ence'.
    DATA : v_cnt TYPE I,
                v_num TYPE I  VALUE 1,
                v_num1 TYPE I.
    v_cnt =  strlrn( v_string ).
    DO v_cnt TIMES.
      IF v_string+v_num1(v_num)  EQ SPACE.
        write: 'i am right'.    
    ELSE.
       write: 'i am WRONG'.
      ENDIF.
      v_num1  =  v_num1 + 1. 
    ENDDO.

  • Asked to reboot to complete install stuck, will not go away, can not use Firefox, can not uninstall, windows based

    asked to reboot to complete install stuck, will not go away, can not use Firefox, can not uninstall, windows based
    I chose to delay reboot
    Rebooted later
    When trying to use Firefox it ask for reboot
    Stuck in a loop

    I thought I would copy your other post ([/questions/887645] ) <br/>
    |
    Let me rephrase in question.
    locking as a duplicate - https://support.mozilla.com/en-US/questions/88761 - please edit your original question instead of starting a new thread <br/>|<br/>
    I installed Firefox 6.0.2 on a Windows Server 2003 box. This box is a terminal server with 9 users that are going to use Firefox. The other users are going to use IE. When asked to reboot now or later, I chose Later. After sometime I rebooted, the message "you need to reboot in order to complete the install" reappears. Over and over again. Can not uninstall (same message) Can not open Firefox (same message) Many reboots using various users, the same results.
    Help!
    |
    The question appears to relate more to the OS than be a firefox problem, but as I have never used Windows Server 2003, I am unable to help.

  • Can't find free space for Shared Memory (Size=83739 KB)

    Hello All,
              I have an issue. i am unable to bring up the server. It is ABAP system.
    dev_w0 log file show me memory error.
    I Fri May 01 10:11:55 2009
    I  *** ERROR => [MapOsShm] Can't find free space for Shared Memory (Size=83739 KB)
                   [shmnt.c      2174]
    I  *** ERROR => [AttachOsShm] MapViewOfFile(Key=62,Handle=0x000003FC) failed with Err=0
                   [shmnt.c      2174]
    I  *** ERROR => ShmCreate: Attach (62,85748608,2) failed [shmnt.c      422]
    Can some body help me with it.
    Thanks and regards
    Kiran

    I am running into the same issue. What exactly solved your problem?
    I will really appreciate any info., around this.
    i am trying to install CE 7.2 Developer Workplace on Windows 32 bit.
    Saurabh

  • I download whatsapp but i can not use how can i do

    i download whatsapp but i can not use how can i do

    the app needs your phone number and it will be sent to your iPhone and you'll receive a message with a code that is needed to activate your whatsapp application.........hope this helps.........good luck......

  • Hello, can someone help me: my eMac G4 700 MHz. I can not boot it. If he starts appears on the screen, only a small "folder with a question mark." The Mac was not used 1 year. Question 1: Problem = hard drive? Question 2: Problem = PRAM battery? the What

    Hello, can someone help me: my eMac G4 700 MHz. I can not boot it. If he starts appears on the screen, only a small "folder with a question mark." The Mac was not used 1 year.
    Question 1: Problem = hard drive?
    Question 2: Problem = PRAM battery?
    the
    What can I do to boot?

    Restart with the Option key held down.
    If the internal drive shows up, it's the PRAM battery.
    If it doesn't, insert a compatible Mac OS 9 or X install disk, click the button with the circular arrow, and either repair the internal drive or install a new OS on it. If it doesn't show up in Disk First Aid(9) or the Disk Utility(X), it's either not plugged in or needs to be replaced.
    (97530)

  • Increasing free space on drive C

    My computer was really low on free space on drive C. It seemed as if Adobe programs were eating up space on drive C. I managed to increase the free disk space from 2.7 GB to 8 GB.
    (Try at your own risk...)
    Windows XP
    1. Delete picture folders from C:\Documents and Settings\Main Administrator\Application Data\Adobe\Bridge CS4\Cache
    Bridge apperantly saves some files automatically. I had some old photos there that I'd already backed up.
    2. Delete C:\Documents and Settings\(user name)\Application Data\Adobe\CameraRaw\Cache
    3. In premiere pro cs4: Edit>Preferences>Media change the location of Media Cache Files and Media Cache Database from drive c to any other drive.

    You are playing with fire!
    The proper way to control and purge these caches can be found as follows in Bridge:
    Edit=>Preferences=>Cache
    provides facilties to set the location of the Bridge cache, control its maximum size, to compact the cache, and to purge the Bridge cache.
    Edit=>Camera Raw=>Camera Raw Cache
    provides facilities to set the location of the Camera Raw cache, control its maximum size, and to purge the Camera Raw cache.
    Don't go willy-nilly deleting files!
         - Dov

  • Hp dc 7800 how can i install pci serial port driver on windows 8.1

    hp dc 7800 how can i install  pci serial port driver on windows 8.1  please help
    This question was solved.
    View Solution.

    Hi:
    Download and install the W7 AMT driver.
    http://h20565.www2.hp.com/portal/site/hpsc/templat​e.PAGE/public/psi/swdDetails/?sp4ts.oid=3459243&sp​...

  • Can't partition free space using Disk Utility

    So something went wrong when I tried to bootcamp.
    Now the situation is following:
    1) I can't install Windows using USB stick, it says that the free space is in GPT;
    2) I can't partition the free space with Disk Utility, tryied it also with recovery mode, the apply button is clickable and active, but it does nothing, it just stays like so and when I exit from Disk Utility it asks if I want to quit without applying but it doesn't work.
    So basically I have wasted 20GB of space and can't do anything with it.
    I don't want to format the hole disk, are there any other workarounds without need to reinstall OSX?
    I have MacBook Pro 13" Retina (late 2013), 128GB SSD, 8GB ram.

    markov-mac:~ markov$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         100.3 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Macintosh HD           *100.0 GB   disk1
    markov-mac:~ markov$ diskutil cs list
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group 0F0D9268-58FC-4832-8FCB-4A11FB5675F6
        =========================================================
        Name:         Macintosh HD
        Status:       Online
        Size:         100335546368 B (100.3 GB)
        Free Space:   15724544 B (15.7 MB)
        |
        +-< Physical Volume 9B8968BE-CE97-4A66-B5B3-31B4EB87E21F
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk0s2
        |   Status:   Online
        |   Size:     100335546368 B (100.3 GB)
        |
        +-> Logical Volume Family B29C277A-660B-41C4-8F5C-A1C5FB01B60F
            Encryption Status:       Unlocked
            Encryption Type:         None
            Conversion Status:       NoConversion
            Conversion Direction:    -none-
            Has Encrypted Extents:   No
            Fully Secure:            No
            Passphrase Required:     No
            |
            +-> Logical Volume 6736784D-A946-4EBF-BBA2-BC7DDC6C4EDE
                Disk:                  disk1
                Status:                Online
                Size (Total):          99999997952 B (100.0 GB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Macintosh HD
                Volume Name:           Macintosh HD
                Content Hint:          Apple_HFS
    markov-mac:~ markov$ mount
    /dev/disk1 on / (hfs, local, journaled)
    devfs on /dev (devfs, local, nobrowse)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    map -fstab on /Network/Servers (autofs, automounted, nobrowse)

  • Do not use Outlook can I delete it?

    Hello - I just updated to Microsoft 2011 to take advantage of ICloud.  I do not use Entourage or outlook.  Microsoft 2011 felt like a behemouth program and Outlook and Entourage take up space.  I've never used either of these portions of the Office Suite.  Can I delete them and still use Word, PP and Excel?  Just trying to free up some space?
    Thank you for your help.
    Tami

    tamis wrote:
    Hello - I just updated to Microsoft 2011 to take advantage of ICloud.  I do not use Entourage or outlook.  Microsoft 2011 felt like a behemouth program and Outlook and Entourage take up space.  I've never used either of these portions of the Office Suite.  Can I delete them and still use Word, PP and Excel?  Just trying to free up some space?
    Thank you for your help.
    Tami
    Just trash them, although they don't take up that much space. I find them only nusience value.
    Good Luck
    Pete

  • Setting aside photo space w/ using music option to fill free space

    I have a 32gb iPhone and I'm am looking for way to utilize the 'fill free space' option with music while at the same time setting aside a few gigs of free space for music and video.  Whenever I use the 'fill free space' option, I am being limited  to the amount of pictures or videos that I can take before I get 'out of space' warnings with the camera.  I would like to set aside 2 or 3gb, dedicated for photos, then fill the rest with music.
    Has anyone found an easy way to do this?  The only way I can think of to work around this might be to dump a lot of photos on the phone when syncing such that they take up an extra amount of space, then manually delete them from the phone interface once I get done.  This seems a little over cumbersome though... I would think there is more eloquent way to do this with through either iTunes or the iPhone.
    Thoughts?

    AC Adam wrote:
    The only way I can think of to work around this might be to dump a lot of photos on the phone when syncing such that they take up an extra amount of space, then manually delete them from the phone interface once I get done. 
    That or add an App or Apps to take up the space.
    I would think there is more eloquent way to do this with through either iTunes or the iPhone.
    Nope.

  • How can I 'fill free space with songs' AND keep some memory free?

    I like the 'automatically fill free space with songs' option, but it leaves me with no room (or very little room) for taking photos and video.  How can I keep some memory free?
    Matthew

    You'll probably need to backup or clone the remaining OS X partition, definitely clone the bootcamp partition then erase and reformat the drive. You'll need a 3rd party app.
    Check out this thread:
    https://discussions.apple.com/message/9076113#9076113

Maybe you are looking for

  • Beginners Guide handbook

    I have created a handbook/booklet with the Beginners Guide, in a much more readable format instead of messy paragraphs and links when it is printed out normally. I will be selling them in my shop, Software Care (see my sig) for £1.99 + P&P. See http:

  • ST22 Short Dump  STORAGE_PARAMETERS_WRONG_SET

    Hi We have a NW04 BW 350 system running on Windows 2003 32 Bit/MS SQL 2000 32 Bit. When I go into RSA --> Monitoring --> PSA  it says 'constructing administrators workbench' then fails with the short dump: <b>STORAGE_PARAMETERS_WRONG_SET</b> The shor

  • How do i restore my iphone if the itunes is not popping up

    im trying to restore my iphone 4 but when i connect my device to the computer the itunes thing doesnt show up what do i do?

  • Display Apple TV on my Macbook or iPad?

    I see a lot about Airplay for displaying my iPad, iPhone or Macbook Pro (with upcoming Mountain Lion) on the Apple TV display via Airplay. What about being able to display the Apple TV screen on my Macbook Pro.   I want to do that too.   Is it possib

  • System availability in process industry

    Hello We are a chimical industry (process) and we use R/3 to support the manufacture process (labratory, PP ,QM). our system protected in HA cluster, and stable. but we know that OFFLINE maintanaces window is needed (for DB upgrade, SAP upgrade and s