Kinh Dịch, Tử Vi, Phong Thủy, Đông y Thiết kế website chuyên nghiệp
  • Tài khoản
  • Mật khẩu
 
Reply to this topicStart new topicStart Poll

giúp tui với

toichapchunghocweb
post Jan 22 2007, 10:15 PM
Gửi vào: #1


Mới Nhập Ngũ
**

Nhóm: Thành Viên Mới
Bài viết: 44
Tham gia: 26-March 04

Thành viên thứ.: 4,090
Tài Khoản: $ 3218



Sau thoi gian bị vỉut máy tui mõi khi khỏi động là hiện ra bản thông báo

Registry Editing has been disabled by your adminitrator

mặc dù vẫn vào được registry editor tu Start/Run

Có cách nào khắc phục không chỉ mình với

Cám ơn!


Top
User is offlinePMMini ProfileEmail Poster
Quote Post
thangbegad
post Jan 23 2007, 11:24 AM
Gửi vào: #2


Sóng Vân Phong
******

Nhóm: Administrator
Bài viết: 1,435
Tham gia: 28-August 03
Đến từ: Trái Tim

Thành viên thứ.: 1,064
Tài Khoản: $ 162271



QUOTE(toichapchunghocweb @ Jan 22 2007, 10:15 PM)
Sau thoi gian bị vỉut máy tui mõi khi khỏi động là hiện ra bản thông báo

Registry Editing has been disabled by your adminitrator

mặc dù vẫn vào được registry editor tu Start/Run

Có cách nào khắc phục không chỉ mình với

Cám ơn!
*



Bạn vào msconfig, xem có key nào lạ thì xóa đi,
hoặc dùng đoạn code sau:
CODE
Option Explicit

'Declare variables
Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers
Dim enab, disab, jobfunc, itemtype

Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
p = p & "DisableRegistryTools"
itemtype = "REG_DWORD"
mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"
enab = "ENABLED"
disab = "DISABLED"
jobfunc = "Registry Editing Tools are now "

'This section tries to read the registry key value. If not present an
'error is generated.  Normal error return should be 0 if value is
'present
t = "Confirmation"
Err.Clear
On Error Resume Next
n = WSHShell.RegRead (p)
On Error Goto 0
errnum = Err.Number

if errnum <> 0 then
'Create the registry key value for DisableRegistryTools with value 0
WSHShell.RegWrite p, 0, itemtype
End If

'If the key is present, or was created, it is toggled
'Confirmations can be disabled by commenting out
'the two MyBox lines below

If n = 0 Then
n = 1
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)
ElseIf n = 1 then
n = 0
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)
End If

Lưu lại với file.vbs rồi chạy nó xem thử!!!


--------------------
Có khi nắng trưa chưa lên, mà một loài hoa chợt Tím....
YM & Skype: ndt4you Chat với tôi khi máy bạn không cài Yahoo Messenger
My World: http://thoigian.info/forum/blog.php
My Company: Viet Solution JSC
user posted image

-----------------------------------------------------------------
Tài sản hiện đang sở hữu:

        
Top
User is offlinePMMini ProfileEmail Poster
Quote Post
 

1 Thành viên đang xem chủ đề (1 khách và 0 người giấu mặt)
0 Thành viên:

Reply to this topicTopic OptionsStart new topic

 


Quảng cáo: Muaban | Quảng bá website | Thiết kế website | Kệ bếp gỗ | Nội thất Lỗ Ban

Bản rút gọn: giúp tui với
Time is now: 8th January 2009 - 06:17 PM