Hallo
hier ein script um DMA zu aktiveren.
--
' Visual Basic Script program to reset the DMA status of all ATA drives
' Copyright © 2006 Hans-Georg Michna
' Version 2006-03-14
' Works in Windows XP, probably also in Windows 2000 and NT.
' Does no harm if Windows version is incompatible.
If MsgBox(This program will now reset the DMA status of all ATA drives with Windows drivers. _
& vbNewline & Windows will redetect the status after the next reboot, therefore this procedure _
& vbNewline & should be harmless., _
vbOkCancel, Program start message) _
= vbOk Then
RegPath = HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\
ValueName1 = MasterIdDataChecksum
ValueName2 = SlaveIdDataChecksum
ValueName3 = ResetErrorCountersOnSuccess
MessageText = The following ATA channels have been reset:
MessageTextLen0 = Len(MessageText)
SubsequentMisses = 0
Set WshShell = WScript.CreateObject(WScript.Shell)
For i = 0 to 999
RegSubPath = Right(000 & i, 4) & \
-> Master
Err.Clear
On Error Resume Next
WshShell.RegRead RegPath & RegSubPath & ValueName1
e1 = Err.Number
Err.Clear
On Error Goto 0
If e1 = 0 Then
On Error Resume Next
WshShell.RegDelete RegPath & RegSubPath & ValueName1
On Error Goto 0
--
nach und vor den --
in einen Editor kopieren und als Resetdma.vbs
abspeichern und dann ausführen.
Habe ich mal irgendwo gefunden funktioniert aber prima.
Gruss
Harry