Tải bản đầy đủ (.pdf) (3 trang)

Thủ thuật Windows XP: Hiển thị tình trạng Startup / Shutdown / Logon / Logoff pptx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (100.21 KB, 3 trang )

Hiển thị tình trạng Startup /
Shutdown / Logon / Logoff.
Vào Notepad soạn nội dung sau rồi lưu lại dưới định dạng là .reg (
VD: Verbose Status.reg )
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curre
ntVersion\Policies\System]
"Verbosestatus"=dword:00000001
Hoặc soạn nội dung sau rồi lưu lại dưới định dạng .vbs (VD: Verbose
Status.vbs )
Option Explicit
Dim WSHShell, n, MyBox, p, itemtype
Set WSHShell = WScript.CreateObject("WScript.Shell")
p =
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curre
ntVersion\Policies\System\"
p = p & "verbosestatus"
itemtype = "REG_DWORD"
n = 1
WSHShell.RegWrite p, n, itemtype
Sau đó tiến hành thực thi file .reg hoặc file .vbs vừa tạo.
Lưu ý:
1. Thủ thuật này được áp dụng để kiểm tra các tiến trình nào gây treo
máy trong quá trình khởi động / tắt máy để tìm cách khắc phục.
2. Muốn trả lại tình trạng Startup / Shutdown / Logon / Logoff như cũ ta
cũng mở Notepad và soạn 1 trong 2 đoạn mã sau rồi lưu lại dưới định
dạng tương ứng rồi tiến hành thực thi file vừa tạo.
 Đoạn mã 1 ( Lưu dưới định dạng là .reg. VD: Undo Verbose
Status.reg )
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curre


ntVersion\Policies\System]
"Verbosestatus"=dword:00000000
 Đoạn mã 2 ( Lưu dưới định dạng là .vbs. VD: Undo Verbose
Status.vbs )
Option Explicit
Dim WSHShell, n, MyBox, p, itemtype
Set WSHShell = WScript.CreateObject("WScript.Shell")
p =
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curre
ntVersion\Policies\System\"
p = p & "verbosestatus"
itemtype = "REG_DWORD"
n = 0
WSHShell.RegWrite p, n, itemtype

×