Lỗi này xảy ra khi chạy lệnh cần quyền Admin trong Command Prompt thường. Cần chạy CMD với quyền Administrator (elevated mode).
Cách 1: Chạy Command Prompt as Administrator
- Win 10: Search "cmd" → chuột phải → Run as administrator
- Win 7/8:
C:\Windows\System32\cmd.exe→ chuột phải → Run as administrator
Cách 2: Dùng tài khoản Administrator ẩn
- Đăng nhập màn hình → Shift+Restart → Troubleshoot → Advanced Options → Command Prompt
- Chạy:
net user administrator /active:yes - Đăng nhập tài khoản Administrator mới → chạy lệnh bị lỗi
- Sau khi xong:
net user administrator /active:nođể tắt
Cách 3: Giảm mức UAC (User Account Control)
- Control Panel → User Accounts → Change User Account Control Settings
- Kéo thanh trượt xuống thấp hơn (hoặc tắt hoàn toàn) → OK → Restart
Cách 4: Lỗi với Diskpart - Quy trình đúng
- CMD Admin → gõ
diskpart list volume→select volume X(X là số volume)format fs=ntfs quick(hoặc lệnh format khác)
Cách 5: Lỗi với CHKDSK - Dùng runas
Thay vì chkdsk /R /F F: hãy dùng:
runas /noprofile /user:computer\administrator "chkdsk /R /F F:"