Share via

Even after disabling Disk Defrag automatically running everyday in the morning

Karanjit Singh 1 Reputation point
2022-05-31T20:29:25.78+00:00

Even after disabling Disk Defrag automatically running every day in the morning and cause performance issue .

We disabled automatic optimization
We disabled the Disc defrag services

We are using windows server 2008 R2

Here are the event log

Log Name: Application
Source: Microsoft-Windows-Defrag
Date: 05/30/2022 6:53:03 AM
Event ID: 258
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: VISUAL7.sintel.local
Description:
The storage optimizer successfully completed analysis on File Repository (F:)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Defrag" />
<EventID Qualifiers="0">258</EventID>
<Level>0</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2022-05-30T10:53:03.0000000Z" />
<EventRecordID>488716</EventRecordID>
<Channel>Application</Channel>
<Computer>VISUAL7.sintel.local</Computer>
<Security />
</System>
<EventData>
<Data>analysis</Data>
<Data>File Repository (F:)</Data>
<Binary>00000000AE010000960100000000000022B6B6A4DCB1BD381B0700000000000000000000</Binary>
</EventData>
</Event>

Windows for business | Windows Server | Storage high availability | Clustering and high availability
Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. MotoX80 37,696 Reputation points
    2022-06-01T18:00:44.737+00:00

    Maybe there is another task. This Powershell command (run as admin) will list the scheduled tasks that ran in the last 24 hours. See if the run time of a task matches (or is close to) the defrag event time.

    Get-ScheduledTask | Get-ScheduledTaskInfo | where-object -property LastRunTime -gt ((get-date).AddDays(-1)) |  Sort-Object -Property LastRunTime | Format-Table -Property TaskName, LastRunTime
    

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.