Reports for Low disk space alerts in scom 2007

Dear Experts,
Is there any possible to get the Low disk Space alerts reports in SCOM 2007 R2.
1, I need reports for Last week SCOM sent alerts on Low Disk space for the servers list
2, Likewise I need SCOM Low disk space alerts reports for last month.
Can somebody please explain me with the steps and I played much with Reporting pane.
Thanks,
Saravana

Hi,
The below code should work to get all servers that have alert of logical disk free space is low in specific period:
get-alert -criteria 'Name = ''Logical Disk Free Space is low'' AND TimeRaised >=''3/24/2014'' AND TimeRaised <= ''4/24/2014''' | select MonitoringObjectDisplayName,MonitoringObjectPath,Name,TimeRaised | sort MonitoringObjectDisplayName
Here is a similar thread for your reference:
how to create a report showing the servers that had the alerts of "Logical Disk Free Space is low" for a specific period?
http://social.technet.microsoft.com/Forums/en-US/50f2c3fb-2dfc-47c6-8c2a-8a2f0149df10/how-to-create-a-report-showing-the-servers-that-had-the-alerts-of-logical-disk-free-space-is-low?forum=operationsmanagerreporting
Regards,
Yan Li
Regards, Yan Li

Similar Messages

  • HP530 OS_ (E:) tools reporting as low disk space

    Hi,
    Following some tinkering by me following some Microsoft support suggestions, I think I have managed to solve my issues with windows updates...It did involve an emergency restart and a system restore from an external hard drive, and I think all is running OK now...the trouble is, I now can't seem to make a new back up on the external hard drive as it comes up with an error code and the OS_(E tools reporting low disk space. The HP_(D recovery is also looking quite full (although not red yet like the (E tools. The OS is Windows Vista Home basic 32- bit.
    Thanks

    these two links will guide you to resolve the issue:
    http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&cc=us&docname=c00678180&dlc=en
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01508532&tmp_track_link=ot_recdoc/c00678180/en_...
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

  • Exchange 2013 Disk space alert on SCOM

    Hi All,
    We have received SCOM alert for one of our Exchange 2013 server where the disk space is 100 GB and free space is 99 GB still I got an alert saying threshold 200 GB. Please help  me to solve this.
    Monitor name >

    Hi,
    For this issue, you can just disable this alert with a SCOM override or you can modify the threshold in Managed availability.
    For details, you can refer to the following article.
    Monitoring Exchange 2013 with SCOM 2012 (Part 3)
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/monitoring-exchange-2013-scom-2012-part3.html
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software
    or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope this can help you.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Low disk space Applescript (AppleEvent handler error -10000)

    Hello,
    I am new to Applescript, downloaded script from online for low disk space alert and was working properly on one mac but getting error on another mac of same version. Someone please help me on this.
    Thanks in advance.
    -- Script to warn users of low disk space remaining on fixed (hard) disks
    -- Created by Matthew Lindfield Seager on 21st March 2007
    -- © Copyright Matthew Lindfield Seager
    ---------- change these settings ----------
    set expectedNumberOfHardDisks to 2
    set minimumFreeSpacePercentage to 60
    set sendToAddresses to {"[email protected]"}
    set sendImmediately to false -- If this setting is false the message will be created but won't be sent until someone manually clicks the "send" button. Only useful for testing!!!
    ---------- change these settings ----------
    tell application "System Events"
              set hardDisks to (name of every disk whose local volume is true and ejectable is false) as list -- list of all hard disk drives
              set notEnoughDisks to false
              set almostFullDisks to {}
              set almostFullDiskNames to ""
              set computername to (do shell script "networksetup -getcomputername")
              if (count of hardDisks) is less than expectedNumberOfHardDisks then
                        set notEnoughDisks to true
              end if
              repeat with i in hardDisks
                        set diskName to (i as string)
                        try
                                  set totalSpace to round ((capacity of disk diskName) / 1024 / 1024)
                                  set freeSpace to round ((free space of disk diskName) / 1024 / 1024)
                                  set percentFree to (round (100 * freeSpace / totalSpace))
                                  if percentFree is less than minimumFreeSpacePercentage then
                                            set almostFullDisks to almostFullDisks & {i}
                                            set almostFullDiskNames to almostFullDiskNames & diskName & ", "
                                  end if
                        end try
              end repeat
    end tell
    if notEnoughDisks or ((count of almostFullDisks) is greater than 0) then
              set messageText to "There is a potential problem with the hard disk drives on the server." & return & return & "Details:" & return
              if notEnoughDisks then set messageText to messageText & " * A hard disk drive may be missing" & return
              if (count of almostFullDisks) is greater than 0 then
                        set messageText to messageText & " * The following hard disks may be close to full capacity: " & almostFullDiskNames & computername & return
              end if
              tell application "Mail"
      activate
                        set warningMessage to make new outgoing message with properties {visible:true, subject:"Warning: Low disk space", contentmessageText)}
                        repeat with i in sendToAddresses
                                  tell warningMessage
      make new to recipient at beginning of to recipients with properties {address:i}
                                  end tell
                        end repeat
                        if sendImmediately then send warningMessage
              end tell
    end if
    Following is the error:
    tell application "System Events"
         get name of every disk whose local volumn = true and ejectable=false
              -->error number -10000
    Result:
    error "System Events got an error: AppleEvent handler failed." number -10000.

    Hi,
    I believe these are the commands (round and do shell script) which causes this error.
    because it's not recommended to use commands of the osax "Standard Additions"  in the 'tell application "System Events"' block, although it works most of the time.
    Here is the modified script that does the same thing :
    set expectedNumberOfHardDisks to 2
    set minimumFreeSpacePercentage to 60
    set sendToAddresses to {"[email protected]"}
    set sendImmediately to false -- If this setting is false the message will be created but won't be sent until someone manually clicks the "send" button. Only useful for testing!!!
    set almostFull to ""
    tell application "System Events"
         set hardDisks to (disks whose local volume is true and ejectable is false) -- list of all hard disk drives
         repeat with tDisk in hardDisks
              try
                   tell tDisk to set percentFree to (100 * (its free space)) div (its capacity)
                   if percentFree < minimumFreeSpacePercentage then
                        set almostFull to almostFull & (get name of tDisk) & ", "
                   end if
              end try
         end repeat
    end tell
    set notEnoughDisks to (count hardDisks) < expectedNumberOfHardDisks
    if notEnoughDisks or (almostFull is not "") then
         set messageText to "There is a potential problem with the hard disk drives on the server." & return & return & "Details:" & return
         if notEnoughDisks then set messageText to messageText & " * A hard disk drive may be missing" & return
         if almostFull is not "" then
              set computername to do shell script "/usr/sbin/networksetup -getcomputername"
              set messageText to messageText & " * The following hard disks may be close to full capacity: " & almostFull & computername & return
         end if
         tell application "Mail"
              activate
              tell (make new outgoing message with properties {visible:true, subject:"Warning: Low disk space", content:messageText})
                   repeat with i in sendToAddresses
                        make new to recipient at beginning of to recipients with properties {address:i}
                   end repeat
                   if sendImmediately then send
              end tell
         end tell
    end if

  • SCOM 2012 issue with disk space alert generation

    we have installed SCOM 2012 newly , after that we have imported Windows Operating system MP's. However customization(Override) of alerts, everything is working fine except not receiving low
    disk space alerts.
    Is there any particular reason why we are not receiving low disk space alerts?

    Hi,
    Did you reach the threashold both for free % and free Mb? Both needs to be reached before you will get an alert.
    For more information, please review the link below:
    Logical Disk Free Space Monitor
    http://blogs.technet.com/b/jonathanalmquist/archive/2009/04/04/logical-disk-free-space-monitor.aspx?CommentPosted=true
    Operations Manager 2012: Monitoring Logical Disk Free Space
    http://tmitegypt.wordpress.com/2012/10/22/operations-manager-2012-monitoring-logical-disk-free-space/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Alert on Low disk space

    Hi  All
    I have created an alert of WMI event in sql server  which send mail if disk space on D drive is less than 10GB
    Query :
    SELECT * from __InstanceModificationEvent
    WITHIN 60
    WHERE
    TargetInstance ISA 'CIM_LogicalDisk'
    AND
    TargetInstance.FreeSpace < 10000000000
    AND
    TargetInstance.DeviceID = 'D:'
    when I enable this alert It sends alert for low disk space
    but some time it does'nt send alerts. I am not sure when this __InstanceModificationEvent   occure
    and is there any another way to alert low disk space in my mailbox

    Take a look on link:
    http://blogs.technet.com/b/fort_sql/archive/2012/08/01/alert-on-low-disk-space-including-mount-points.aspx
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7a750515-8e82-425d-9c97-f37aac8e149a/monitor-disk-space-using-alerts?forum=sqldatabaseengine
    --Please click "Propose As Answer"
    if a post solves your problem, or "Vote As Helpful" if a post has been useful to you

  • Tempro v2 - changing threshold for disk space alert

    Hello,
    I have downloaded and installed Tempro v2 on a Satellite A200. It is running fine.
    However, tempro has a problem that was present on the version 1.x .
    The low disk space alert is set to trigger, way, way too early at 25% disk space left on any partition. On a modern disk this is around 15GB. This is way , way too early to be told of a problem. I have swiched off this alert - which I don't want to do. There seems to be no way (that I can find) to set this alert to trigger at a more sensible value - say 10% disk space left or a given amount of disk space left - say 2GB.
    Is there a fix for this or have I missed how to set this value as I don't want to run without knowing I am running low on disk space? Getting this alert at 25% is irritating.
    Thanks
    Clive

    Hi
    I dont think that you could change this value or settings
    Tempro sends the notifications about the status of the whole HDD and therefore you have received this message.
    Ive got this tool on my notebook too but didnt find any settings which would help to disable the notification about single partitions on the HDD

  • Disk space alert

    My lion server (mountail lion 10.8.2 with update as of Oct 1) is giving me a low disk space alert.  Something like 694 mb left... when a simple get info on the drive indicates 174 GB free.  What is going on? Any ideas?

    Obviously the iPhoto GB size is not correct. Not sure what to do about that. I would definitely delete iPhoto's preference file. Close iPhoto. Go to your Home folder (YourUserName)/Library/Preferences/com.apple.iphoto.plist
    Drag this plist file into the trash. Reopen iPhoto. See if the size has reverted to normal.
    What format is the original footage in iPhoto? Most camera video clips are mpeg, and even if you get them into iMovie, they probably will not play correctly. Mine lose audio.
    However, when you import the videos into iMovie, you are probably going from compressed to uncompressed footage, thus increasing the size. See this for a bit more info:http://discussions.apple.com/thread.jspa?messageID=9017510&#9017510
    Have you tried using MPEG Streamclip to convert it before importing into iMovie? http://www.squared5.com/
    You also need Apple's QuickTime MPEG2 Playback Component ($20) for this to work properly.http://store.apple.com/us/product/D2187Z/A
    For use in iMovie 6, export the clips to DV. Do them one at a time to isolate any problems with the original clips. Save each one to the desktop. Then, import them into your iMovie. Save each as you go.
    If you get them all converted properly, and they import ok into iMovie, you can delete the originals from iPhoto and see if doing so corrects the size issue in iPhoto.
    Post back if this does not help and you are still having problems.

  • Low Disk Space - Mini 110

    Recently the free space on my HD has suddenly disappeared but I haven't installed any new programs.  I have the 16GB solid state drive and originally had about 5GB of programs installed.  A couple of weeks ago I started getting low disk warnings but couldn't figure out why but deleted a few little used programs to free up space.  Went from 75mb free to 850mb then the next day I get the low disk warnings again, showing 160mb free. I lot almost 700mb overnight.
    Tried the Chat option and instead of fixing the problem had me change the Registry but instead of fixing anything only stopped the warning message.  Guess the logic is if you don't see a problem it isn't there.  Then he wanted me to delete Windows components.  I drew the line there, would free a few mb w/o fixing the problem,  After this suggestion I realized my Indian chap didn't have a clue.
    My firtst thought was a virus but I've done 3 full scans w/o finding anything.   Any ideas whats causing my hd free to disappear and possible solutions?

    All latest solutions for low disk space problem on HP netbooks can be found in below link:
    How to free up disk space on HP netbooks.
    Note:
    This post was edited.
    1. Install and run CCleaner.
    Here You will find documentation for this program.
    Very important sections from this documentation for You there are:
    Cleaning your PC
    Removing System Restore points
    2. Change settings for restore points:
    Go to Accessories -> Systems Tools then bottom  System Restore.
    Click on settings there (if it's disabled uncheck switch off restore points on all drives).
    Move slider there max to the left side and click on OK.
    When you will do this Disable restore points in Windows XP:
    Resource:
    How to turn off and turn on System Restore in Windows XP
    3. You may also have recovery partition:
    connect Your notebook to the AC power adapter.
    Close all running programs, as system has to be rebooted.
    Click on Start button, then All Programs , follow by Recovery Manager or System Recovery . Then run Recovery Manager or PC Recovery.Alternatively, if you’re using Vista, type “Recovery” in the search field, and click on Recovery Manager when it appears in the searched program list to open the Recovery Manager window.
    For “PC Recovery”, select the option to perform the PC Recovery when the recovery options are presented, and click Next. Wait for computer to restart.Skip to next step if you’re using “Recovery Manager”.
    For “PC Recovery”, click on OK button on “Welcome to PC Recovery” dialog message.Skip to next step if you’re using “Recovery Manager”.
    Click Advanced Options button.
    Click on radio button of Remove recovery partition (or Delete Recovery Partition on PC Recovery) option and click Next.
    When prompted to verify that you want to delete the partition, select the Yes option, and click Next.IMPORTANT Reminder: If you still haven’t create recovery discs, click on “Click Here” button to create a set now, else you will have to pay in order to get the discs sent to you.
    PC Recovery does not prompt you for confirmation.
    Removal process will start to remove the recovery partition.IMPORTANT: Recovery Manager is new tool and able to remove recovery partition without affecting or touching existing data and system partitions. Users can then use Disk Management tool in Computer Management of Control Panel, or third party utilities such as Partition Magic or Acronis Director Suite (which in fact can be used to remove the recovery partition straight away) to extend the size of existing partition to make use of freed space. However, in the older PC Recovery, the whole disk will be formatted once recovery partition is removed. Thus, backup your data before performing the action above. And, an operating system and programs must be installed on the hard drive manually.
    Restart the computer when done.
    4. Reduce pagefile.How to do it informations here.
    5. Disable hibernation. How to do it informations here.
    6. Clean browser's cache. How to do it informations here.
    7. Reduce Recycle bin's size. How to do it informations here.
    8. Backup Your XP system on external HDD, DVD/CD or flash memory:
    Macrium ReflectFree Disk Imaging
    Paragon (may work better with Intel machines)
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • SCOM Disk space alert automation with Ticketing Tool

    Dear Experts,
    We are in the process of SCOM Automation with our Ticketing Tool like below incidents:
    1, Whenever Disk space alerts are generated in SCOM console with warning and critical criteria then Incident tickets are created automatically .
    so, what are the classes or objects needs to be selected only for Disk space alerts for automation with Ticketing tool in SCOM.
    Any suggestions would be appreciated..
    Regards,
    Saravana

    The disk space alerts will come from the Logical Disk Free Space monitor which is targetted at the Windows Server 20XX Logical Disk class;
    Is this what you need?

  • Premiere Elements reports low disk space error right at the end

    Ok, so I wait for 5 hours for a 3 hour long video to get saved to my computer.  It goes to 99% and then I get a low disk space error.  After I clear up space, and click Ok, it starts all over again.  Firstly, why doesn't PrE calculate/predict how much disk space I would need BEFORE starting to save, and secondly why does it at least not resume the saving process after I clear up disk space, instead it starts all over, with my 5 hours wasted?
    Some serisous usability issues.  Is it just me or do these things drive others crazy too? 
    Expected more from Adobe...

    Unfortunately, as PrE uses a 2-Pass Encoding scheme (helpful to get the best quality within the same file size), it does not know exactly how much space will be used, until well into the second pass - the first is a survey of any motion in the Clips on the Timeline, and the second is the actual Encoding, and writing of a file.
    Another consideration, regarding disk usage is whether one is Exporting/Sharing both Audio & Video. If one IS doing a Multiplexed file (with both an Audio and a Video Stream in one file), a Video-only file is written first, and then an Audio-only file, with a few "helper files" to be used in just a moment. Then, when that has completed, PrE reads those helper files, and creates the final, Multiplexed file. Last, the two separate Audio-only and Video-only files are Deleted. That takes some space, as at some point, one will have three large files, though two will be Deleted, along with the little helper files.
    How much defragmented, free-space do you have?
    What is your I/O setup, i.e. the number of physical HDD's, and how they are allocated?
    Good luck,
    Hunt

  • My C drive is 19.5 GB. xp sp3 took 5.05 GB.Firefox also installed here . There's no room for new downloaded files.So I changed the save to option in another drive. Still when downloading large files 'low disk space' message shown.

    suppose I want to download a 4 or 5 GB file,in C:/ there is usually 2 or 3 GB left.So I changed the directory of saved files to E:/.Still low space problem occurs and the newly downloaded file is not saved.A low disk space message is shown.Why is this showing?How to resolve this?

    in options under the "general" tab change the download folder,if that does not help change the option to "ask every time".I recommended to use DAP to download your files its great and accelerates your speed quite a lot.
    link: www.speedbit.com

  • Powershell script to get the low disk space on the servers...

    Hi,
    We have many SQL & Sharepoint servers running on windows server. I need some Powershell script to get the low disk space on those servers and it should send an mail alert saying "Disc d:\ have less than threshold 15% free space".
    Awaiting for response.
    Thanks
    Anil

    you should be able to use this powershell script which you can run as a scheduled task.
    just change the details at the start of the script to point the script to the right location to create log files. you will need to have a plain text file containing a list of server names or ip addresses that you want to check drive space on.
    # Change the following variables based on your environment
    #specify the path to the file you want to generate containing drive space information
    $html_file_dir = "\\server\share\DriveSpace"
    #specify the path and file name of the text file containing the list of servers names you want to check drive space on - each server name on a seperate line in plain text file
    $server_file = "\\server\share\servers.txt"
    #speicfy the from address for the email
    $from_address = "[email protected]"
    #specify the to address for the email
    $to_address = "[email protected]"
    #specify the smtp server to use to send the email
    $email_gateway = "smtp.domain.com" # Can either be DNS name or IP address to SMTP server
    # The seventh line from the bottom (line 167) is used if your smtp gateway requires authentication. If you require smtp authentication
    # you must uncomment it and set the following variables.
    $smtp_user = ""
    $smtp_pass = ""
    # Change the following variables for the style of the report.
    $background_color = "rgb(140,166,193)" # can be in rgb format (rgb(0,0,0)) or hex format (#FFFFFF)
    $server_name_font = "Arial"
    $server_name_font_size = "20px"
    $server_name_bg_color = "rgb(77,108,145)" # can be in rgb format (rgb(0,0,0)) or hex format (#FFFFFF)
    $heading_font = "Arial"
    $heading_font_size = "14px"
    $heading_name_bg_color = "rgb(95,130,169)" # can be in rgb format (rgb(0,0,0)) or hex format (#FFFFFF)
    $data_font = "Arial"
    $data_font_size = "11px"
    # Colors for space
    $very_low_space = "rgb(255,0,0)" # very low space equals anything in the MB
    $low_space = "rgb(251,251,0)" # low space is less then or equal to 10 GB
    $medium_space = "rgb(249,124,0)" # medium space is less then or equal to 100 GB
    #### NO CHANGES SHOULD BE MADE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
    # Define some variables
    $ErrorActionPreference = "SilentlyContinue"
    $date = Get-Date -UFormat "%Y%m%d"
    $html_file = New-Item -ItemType File -Path "$html_file_dir\DiskSpace_$date.html" -Force
    # Create the file
    $html_file
    # Function to be used to convert bytes to MB or GB or TB
    Function ConvertBytes {
    param($size)
    If ($size -lt 1MB) {
    $drive_size = $size / 1KB
    $drive_size = [Math]::Round($drive_size, 2)
    [string]$drive_size + ' KB'
    }elseif ($size -lt 1GB){
    $drive_size = $size / 1MB
    $drive_size = [Math]::Round($drive_size, 2)
    [string]$drive_size + ' MB'
    }ElseIf ($size -lt 1TB){
    $drive_size = $size / 1GB
    $drive_size = [Math]::Round($drive_size, 2)
    [string]$drive_size + ' GB'
    }Else{
    $drive_size = $size / 1TB
    $drive_size = [Math]::Round($drive_size, 2)
    [string]$drive_size + ' TB'
    # Create the header and footer contents of the html page for output
    $html_header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Server Drive Space</title>
    <style type="text/css">
    .serverName { text-align:center; font-family:"' + $server_name_font + '"; font-size:' + $server_name_font_size + `
    '; font-weight:bold; background-color: ' + $server_name_bg_color + '; border: 1px solid black; width: 150px; }
    .headings { text-align:center; font-family:"' + $heading_font + '"; font-size:' + $heading_font_size + `
    '; font-weight:bold; background-color: ' + $heading_name_bg_color + '; border: 1px solid black; width: 150px; }
    .data { font-family:"' + $data_font + '"; font-size:' + $data_font_size + '; border: 1px solid black; width: 150px; }
    #dataTable { border: 1px solid black; border-collapse:collapse; }
    body { background-color: ' + $background_color + '; }
    #legend { border: 1px solid black; ; right:500px; top:10px; }
    </style>
    <script language="JavaScript" type="text/javascript">
    <!--
    function zxcWWHS(){
    if (document.all){
    zxcCur=''hand'';
    zxcWH=document.documentElement.clientHeight;
    zxcWW=document.documentElement.clientWidth;
    zxcWS=document.documentElement.scrollTop;
    if (zxcWH==0){
    zxcWS=document.body.scrollTop;
    zxcWH=document.body.clientHeight;
    zxcWW=document.body.clientWidth;
    else if (document.getElementById){
    zxcCur=''pointer'';
    zxcWH=window.innerHeight-15;
    zxcWW=window.innerWidth-15;
    zxcWS=window.pageYOffset;
    zxcWC=Math.round(zxcWW/2);
    return [zxcWW,zxcWH,zxcWS];
    window.onscroll=function(){
    var img=document.getElementById(''legend'');
    if (!document.all){ img.style.position=''fixed''; window.onscroll=null; return; }
    if (!img.pos){ img.pos=img.offsetTop; }
    img.style.top=(zxcWWHS()[2]+img.pos)+''px'';
    //-->
    </script>
    </head>
    <body>'
    $html_footer = '</body>
    </html>'
    # Start to create the reports file
    Add-Content $html_file $html_header
    # Retrieve the contents of the server.txt file, this file should contain either the
    # ip address or the host name of the machine on a single line. Loop through the file
    # and get the drive information.
    Get-Content $server_file |`
    ForEach-Object {
    # Get the hostname of the machine
    $hostname = Get-WmiObject -Impersonation Impersonate -ComputerName $_ -Query "SELECT Name From Win32_ComputerSystem"
    $name = $hostname.Name.ToUpper()
    Add-Content $html_file ('<Table id="dataTable"><tr><td colspan="3" class="serverName">' + $name + '</td></tr>
    <tr><td class="headings">Drive Letter</td><td class="headings">Total Size</td><td class="headings">Free Space</td></tr>')
    # Get the drives of the server
    $drives = Get-WmiObject Win32_LogicalDisk -Filter "drivetype=3" -ComputerName $_ -Impersonation Impersonate
    # Now that I have all the drives, loop through and add to report
    ForEach ($drive in $drives) {
    $space_color = ""
    $free_space = $drive.FreeSpace
    $total_space = $drive.Size
    $percentage_free = $free_space / $total_space
    $percentage_free = $percentage_free * 100
    If ($percentage_free -le 5) {
    $space_color = $very_low_space
    }elseif ($percentage_free -le 10) {
    $space_color = $low_space
    }elseif ($percentage_free -le 15) {
    $space_color = $medium_space
    Add-Content $html_file ('<tr><td class="data">' + $drive.deviceid + '</td><td class="data">' + (ConvertBytes $drive.size) + `
    '</td><td class="data" bgcolor="' + $space_color + '">' + (ConvertBytes $drive.FreeSpace) + '</td></tr>')
    # Close the table
    Add-Content $html_file ('</table></br><div id="legend">
    <Table><tr><td style="font-size:12px">Less then or equal to 5 % free space</td><td bgcolor="' + $very_low_space + '" width="10px"></td></tr>
    <tr><td style="font-size:12px">Less then or equal to 10 % free space</td><td bgcolor="' + $low_space + '" width="10px"></td></tr>
    <tr><td style="font-size:12px">Less then or equal to 15 % free space</td><td bgcolor="' + $medium_space + '" width="10px"></td></tr>
    </table></div>')
    # End the reports file
    Add-Content $html_file $html_footer
    # Email the file
    $mail = New-Object System.Net.Mail.MailMessage
    $att = new-object Net.Mail.Attachment($html_file)
    $mail.From = $from_address
    $mail.To.Add($to_address)
    $mail.Subject = "Server Diskspace $date"
    $mail.Body = "The diskspace report file is attached."
    $mail.Attachments.Add($att)
    $smtp = New-Object System.Net.Mail.SmtpClient($email_gateway)
    #$smtp.Credentials = New-Object System.Net.NetworkCredential($smtp_user,$smtp_pass)
    $smtp.Send($mail)
    $att.Dispose()
    # Delete the file
    Remove-Item $html_file
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Problem With Low Disk Space - Message - Email and ...

    Hi all,
    I have a N97 and i noticed that when i have around 200 stored messages in my sent and my received in box then i get the e-mail disconnecting and saying to me that it's been disconnected due to low disk space.
    So i tried changing the location of the folders for the e-mails and then i got a warning about the folders not being correct and had to restore them to the original settings.
    I'm sure this is also related but some one tried to send me a small video via blue tooth and it told me that the memory was full but for the life of me i can't seem to change where a blue tooth message would go too.
    Thanks in advance for any tips.
    i know i may have 2 separate issues here but it's all the same low disk space or out of disk space etc etc
    it would seem that it's a problem so how can i go about fixng it, it's poor...
    The first offering is Nokia's new 'Messaging' client. If you really, really have been looking forward to this then by all means install it, but beware that it will, between application and messagebase, use up a lot of disk C: on its own. And you can't switch the messagebase to 'mass memory', because that gets locked out when you connect your N97 up to your PC or Mac, switching Nokia Messaging back to C:. As a long time Gmail user, I still find it easier to use either the 'old' S60 Messaging application (in IMAP4 mode) or just use the standalone Gmail (Java-based) application, which has the benefit of speed and of an utterly minimal footprint in daily use.
    Also offered via 'Sw update' is Ovi Maps 3.1, which also insists on ensconcing itself on C:. If version 2.0 is working well for you then there really isn't a compelling reason to update, to be honest. Or at least not one that's compelling enough to warrant signing over at least 7MB of C: to it. If version 2 isn't working for you, you still shouldn't install v3.1, as offered, but go for the very latest v3.3, from the Nokia Beta Labs Maps page. It's faster and slicker and at least you'll be getting extra functionality for your lost Megabytes, including less troublesome GPS performance. See below for more on the GPS.
    Next is Ovi Contacts, a beta-quality social integration system that's yet to take off in any meaningful way. Again, just avoided unless you really, really want to get involved. You don't need to lose the vital Megabytes.
    Then there's the N-Gage games client, another C: biggie, seemingly swallowing up 6MB or so in a real world installation - if, like me, you're rather underwhelmed by N-Gage titles (in fact, underwhelmed by gaming on Symbian in general, but that's another rant for another day), then just say no and, again, give your internal disk a break.
    The final optional 'Sw update' was Quickoffice 6, bringing compatibility with Office 2007 documents. This also takes up the best part of 10MB on C:, so unless you get a lot of Docx or Xlsx files by email then I'd strongly suggest holding fire on this update - you'll probably get it anyway in the v20 firmware in a few months time.
    Message Edited by mowax on 02-Dec-2009 02:38 PM
    Message Edited by mowax on 02-Dec-2009 02:39 PM
    Solved!
    Go to Solution.

    Hi, don't know wether you've done this, but go into messaging/options/settings/other/memory in use/set as E:mass memory. If this causes a problem with email, simply delete mailbox and re-install it, it only takes a couple of minutes. One other thing , if you want to save any txt messages, sync with ovi first.Also to get C memory back delete all messages sent , recieved, reports etc before selecting Memory in use as E. Also go to web browser and clear privacy data regularly. One other thing to note is that usually when connected to computer via usb, messaging memory will revert to C, and you won't be able to see any messages , so reset to E again and they are all there. Best taskmanager from Ovi store is also a real help with memory on phone.
    Hope this helps, and my appologies for the somewhat eratic layout nof the advice. Should have mentioned clearing messages from C before using E !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Could Very Low Disk Space Cause problems?

    Hi, my 600 GB Hard Drive only had around 5 GB of space left . I purchased a new 1 TB Hard Drive in order to delete media so that I could gain the space back. I've since gained back 200 GB of Space but Could very low disk space cause issues? What kind of issues could occur? Thanks
    Message was edited by: Stuart Lawrence

    There are any number of reasons for occasional beachballs to appear. They will appear when some programs are involved in heavy disk I/O which tends to be processor dependent and causes the program to suspend all other activity until the disk activity has completed. This is more often the case when writing to the disk. Beachballs may also appear if the OS has to use disk I/O and is slowed down by an over-filled and/or fragmented hard drive. The fuller a drive gets the greater the likelihood that fragmentation will become a more noticeable problem. Beachballs can appear if you are low on physical memory so applications must resort to disk-based virtual memory which is considerably slower and tends to cause the computer to become slow or unresponsive for a period of time. It can also cause disk-thrashing. Beachballs can occur if the disk has become corrupted causing applications to have difficulty reading from or writing to the disk.
    It is possible to repair a drive's directory, and it's even possible to identify corrupted files, but it's not possible to repair corrupted files nor repair a corrupted drive. If a drive develops corrupted files either the files will need to be replaced or deleted. If a drive develops soft sector errors these can be repaired by erasing the drive (reformatting.) If a drive develops hard sector errors these may or may not be repairable, but if they are repairable it requires zeroing the data during a disk formatting operation. If the disk directory becomes corrupted that can be repaired using Disk Utility or one of the various third-party utilities such as Disk Warrior. Disk Utility can repair many but not all directory corruption problems. What DU cannot fix Disk Warrior usually can.
    You can start repairing a drive as follows;
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    This applies to your startup volume. No need to repair permissions on any but a startup volume.

Maybe you are looking for

  • Set target window size

    Hello How do I set the target window size (say to 300 x 300px) when using 'getURL' to open an HTML page. I have tried resizing the target page on load in dreamweaver with no success. Thanks

  • IWeb retired and replaced by Gallery in MobileMe?

    After five days of iWeb stress I finally found that MobileMe has a picture hosting option which I am going to trial. Maybe Apple has disabled iWeb but has not let us know.

  • Lightroom Export Action and Automator

    Hi. Have an interesting anamoly that I hope someone an explain to me. I am trying to leverage Adobe Lightroom's export preset post-processing option to help in importing photos into iPhoto (where I can make easy use of the .mac photocasts). I created

  • Question on toolbar customization

    Hi, I have a couple of questions relating to toolbar customizations in E-Sourcing 1) I'm unable to view the Toolbar customization setup option using my authorization, is there a way to change enable it 2) Is there a way to rename a tab in the documen

  • Ipad image burn in

    iPad at 1 1/2 years, diminished enjoyment and privacy concerns. I brought my iPad2 to an apple store and showed them just how bad my screen retention problem was. You can easily read the last url off the background when safari is closed. They, i spok