Windows 7 Defrag from command line does not work

We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
C:\Windows\system32>defrag /c
Microsoft Disk Defragmenter
Copyright (c) 2007 Microsoft Corp.
It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
Defragment disks, works fine.
I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
This happens only with some of the windows 7 VM's that we have.
There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?

Hi,
Could you defrag as below method:
1. Open Disk Defragmenter by clicking the Start button. In the search box, type
Disk Defragmenter, and then, in the list of results, click
Disk Defragmenter.
2.Under Current status, select the disk you want to defragment.
3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
Last Run column. If the number is above 10%, you should defragment the disk.
4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
For more information, please read this article:
Ways to improve your computer's performance
http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
Meanwhile, read this article:
Defrag from the Command-Line for More Complete
Control
http://technet.microsoft.com/en-us/magazine/ff458356.aspx
Karen Hu
TechNet Community Support

Similar Messages

  • Windows Update from COntrol Panel does not work??

    Hello,
    regardless if it is common way to do so or not: Does anyone have experience with the "Windows Update" functions in WE8S?
    I tried them upon a customers request, and I've seen that I could not get it to complete successfully when choosing the option in
    Control Panel. It either hanged during "Downloading..." or at the "Preparing to install..." screen - I waited for many hours. But when I using the "Windows Update"
    app from the start screen, updates were installed without any problems (OK, 1 has failed, but the process has completed). Of course, both methods have different look, maybe it is not the
    same...
    As per Sean Limings' book it is no good idea to update systems in the field this way - shall I remove the functions from the system? What are you doing?
    Thanks,
    Willi K.

    Maybe it was because of the number of updates (in my case there were 85 updates pending). After I succeeded installing via the "Windows Update" app from "Start Menu", there where two more updates, and update now worked when called from
    control panel (at least one of them, KB2973201 still stolidly fails to install).

  • I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    I tried to update my photo albums in my Iphone 4S. I could not, and the old photos were removed. I tried again to copy the albums in the Iphone from a PC Windows XP folder and it does not work.

    You can't activate any GSM iPhone without a valid sim card installed in the phone.
    So, yes, you need to get a sim card.

  • How to organize app windows in Exposé.? The command 1 , or, command 2 does not works.

    How to organize app windows in Exposé.? The command 1 , or, command 2 does not works.

    There is no Exposé in OS X Mountian Lion, Apple removed it for "Mission Control" and yes it is a confusing mess.
    https://support.apple.com/kb/ht4689

  • Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million :)

    Hi guys, I have a big problem! My bookmark shortcut entry(command D) does not work anymore and do you know by any changes how to undo resetting of Safari? Thnx a million

    Try troubleshooting the Safari .plist file.
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder.
    Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Relaunch Safari. Try a bookmark.
    If that didn't help, check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari.
    If Extensions aren't the issue, reset Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.

    Aero in Windows 7 64bit home premium does not work. Aero display selections are grayed out.  HP 600-1315xt.
    Have tried everything I can find on internet and here on HP. None of the suggestions worked. Windows fixit for windows could not fixit. Any suggestions are appreciated. I can always use my disks and rebuild the computer. A last resort.

    Hi,
    It might be the graphic driver not compitable with the graphic device.  Has there been a change to the graphic driver?
    One thing you can try is to uninstall graphic driver and download the latest from Windows Update (if you haven't tried this).  Here are the possible steps:
    1.  Go to Control Panel->Hardware and Sound->Device Manager,  uninstall the graphic card driver by right clicking and select "uninstall".  Make sure the option "Delete the driver software for this device" is selected.
    2.  Reboot the system.
    3.  Go to Control Panel->System and Security->Windows Update, click on "Optional updates" and find the driver for g210 and do the update.
    I work on behalf o HP.
    Please click the white Kudos star to say thanks.
    Please click Accept As Solution if you found my response helpful.

  • Shift-Command-R does not work anymore

    Hello all,
    I've noticed that the shortcut shift-command-r does not work anymore on my macbook pro. I used it for the calendar to refresh all calendars, and its also handy to open the reader in safari 5.
    When I open the keyboard viewer from the language and text menu I can see it when I press shift, then command but when I press "R" nothing changes, only shift+command stay highlighted. Other letters do work, so its a bit strange.
    Anyone know a solution for this?
    Thank you in advance

    Nope thats not the problem, the listening key is Esc. It is as if the keyboard does not register it when the R is pressed in combination with the shift and the command together. As I said, the keyboard viewer shows every keystroke except the shift-command-r combi.

  • The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    I found this plugin which solved pretty much all of my mail font rendering problems.  It is designed for Lion, so don't know whether it will work but thought I would offer it up.
    http://noware-it.zxq.net/

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • HT1202 The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.

    The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.
    How can I transfer my music to a second computer iTune?
    Thanks,

    See this user tip
    Syncing iPhone to a "New" Computer or replacing a "crashed" Hard Drive

  • I have a MacBook Air using Maverick. I have files in the trash I want to recover. I do not have "Put Back" and Command   Delete does not work.

    I have a MacBook Air using Maverick. I have files in the trash I want to recover to their original files. I do not have "Back Up" and "Command + Delete" does not work.

    Drag them out of the Trash and put them in their original location. Put Back may work on one file at a time.

  • Getting input from mouse-wheel: does not work under windows/IE

    Hi
    I have built an applet that extends JApplet. To it I have added a class that extends JPanel implements MouseListener, MouseWheelListener, MouseMotionListener.
    I collect input using the method
    public void mouseWheelMoved(MouseWheelEvent e){
    do stuff...
    I have build this on a mac and tested it in firefox and it works fine. But on xp/vista internet explorer, the applet does not respond to mousewheel input. On mac osx /safari it does not work either.
    Is there any solution to this problem?
    Best regards, Carlis.

    Just for luck, try setting the JPanel focusable.panel.setFocusable(true);If that doesn't make a difference, you need to post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    db

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • I HAVE EARLIER PREPARED WINDOWS REPAIR DISC, NOW IT DOES NOT WORK

    140525
    I HAVE WINDOWS 7  ULTIMATE VERSION- 32 BIT
    I HAVE EARLIER PREPARED MANY  " WINDOWS REPAIR DISC" FROM TIME TO TIME AS A PROTECTION ON THIS VERY LAPTOP AND OS.
    NOW IT DOES NOT WORK AND GIVE ERROR CODE -- 0XC00AA0301.
    I TRIED SEVERAL TIMES AND WASTED QUITE A FEW DVD'S.
    CAN YOU GUIDE?
    REPLY ON [email protected]
    HOPE TO RECEIVE HELP.
    GJDMBH

    Once downloaded the Window7 setup you then want to download the windows free burning app from the same thread.
    Also visit the Microsoft website link below as has basic guidance that may help you.
    http://www.microsoftstore.com/store/msusa/html/pbP​age.Help_Win7_usbdvd_dwnTool
    Basically with the Windows free burning app you can make either a USB boot stick media of windows 7 or a good older fashioned DVD boot media. Just follow instructions & see how you go, if get stuck come back to this thread & post details on your issue - hopefully myself or other members will be able assist you further if needed.
    Like my post? Click Kudos (thumb+) to show appreciation.

  • Installing Firefox with windows 7 64bit mode just does not work.

    I have windows 7 64bit mode. I cannot install firefox, it crashes all the time when I open it. I know the problem is because my windows 7 is in 64bit mode. Can you (firefox support) or someone on this forum provide the simple and easy steps of getting it to work. Also can you (firefox) hurry up and release a 64bit version. I'm using google chrome and crazy browser as they seem to have no problems at all. I really want to use firefox but it just won't set up for me because I'm running win7 64bit mode. If I was running win7 32bit mode I wouldn't be having any issues. Has anyone out there got a simple step by step solution for this? It it mind boggling that with todays technology no one has a simple fix for this issue. Help!!!!!
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    I have been running Win 7 64 bit on an HP Pavilion lap for several months. The whole browser thing has been a nightmare. My work involves heavy duty internet research. Firefox crashes every few minutes. There is no specific event I can find that kicks this off, but running the latest Flash Players and Adobe Reader makes it a lot worse. In fact, I had to set up the adobe reader to not run within the Firefox window. I had to back off to an old version of adobe Reader and Flash Player to accomplish this. I love Firefox. I was disappointed to have to uninstall it as it was impossible to run searches with it.
    So then it proved to be that IE either version 8 or 9 was even worse. I could not keep it up long enough to run a search.
    So I installed Chrome which has some nice features, but it also crashes, albeit more gracefully so I do not lose my place and it makes a quick recovery but there are many online applications where Chrome just does not work.
    My son also has Win7 64 bit and says he is also having the same problems.
    I want my Firefox back! Please fix it.

Maybe you are looking for

  • How to get loan balance

    Dear Friends, How to get loan balance in HR module. any help higly appricated. Regards, Malik

  • How to display warning message in PL/SQL?

    Hi, I would like to know how to display a warning message in PL/SQL? Thanks and Regards, SC

  • Need Function to return CHAR(2) datatype -

    I've created the following function. It needs to return a CHAR(2) datatype, but this code always returns VARCHAR2(4000). If I change it to numeric, I do get a number. Is there some obvious reason why I am not able to return a 2-byte character value f

  • Infospoke question

    Hi experts, We have an infospoke which is pulling data from a cube via delta mode. We noticed in the past weeks that whenever the infospoke is reading two requests from the cube with 0 added, it is somehow pulling data via full extraction. When I che

  • JDev 10.1.3 ADF: How to fire an event when clicking a Radio Button

    I have a <af:table> component with the following code for my radio button <af:tableSelectOne text="Select and" binding="#{backing_viewFees.tableSelectOne1}" id="tableSelectOne1" attributeChangeListener="#{backing_viewFees.tableSelectOne1_attributeCha