Thủ thuật Windows XP: Thay đổi thông tin người dùng trong Windows ppsx

3 387 0
Thủ thuật Windows XP: Thay đổi thông tin người dùng trong Windows ppsx

Đang tải... (xem toàn văn)

Thông tin tài liệu

Thay đổi thông tin người dùng trong Windows Vào Notepad soạn nội dung sau rồi lưu lại dưới định dạng là .vbs ( VD: Change Account.vbs ) Option Explicit Set ws = WScript.CreateObject("WScript.Shell") Dim ws, t, p1, p2, n, g, cn, cg Dim itemtype p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\" n = ws.RegRead(p1 & "RegisteredOwner") g = ws.RegRead(p1 & "RegisteredOrganization") t = "*¤*•,¤*•,¸.¸,•*¤*•_Thong Bao_•*¤*•,¸., •*¤*" cn = InputBox("Dien ten nguoi su dung moi tai day:", t, n) If cn <> "" Then ws.RegWrite p1 & "RegisteredOwner", cn End If cg = InputBox("Dien ten dia chi, nghe nghiep hoac cong ty moi tai day.", t, g) If cg <> "" Then ws.RegWrite p1 & "RegisteredOrganization", cg End If Sau đó tiến hành thực thi file vừa tạo và làm theo hướng dẫn. Ngoài ra ta cũng có thể sử dụng đoạn mã sau nhưng khi lưu thành file .vbs thì chọn File  Save as… và chọn Unicode tại trường Encoding để hiển thị đúng phông Unicode. Option Explicit Set ws = WScript.CreateObject("WScript.Shell") Dim ws, t, p1, p2, n, g, cn, cg Dim itemtype p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\" n = ws.RegRead(p1 & "RegisteredOwner") g = ws.RegRead(p1 & "RegisteredOrganization") t = "*¤*•,¤*•,¸.¸,•*¤*•_Thông Báo_•*¤*•,¸., •*¤*" cn = InputBox("Điền tên người sử dụng mới tại đây :", t, n) If cn <> "" Then ws.RegWrite p1 & "RegisteredOwner", cn End If cg = InputBox("Điền tên địa chỉ, nghề nghiệp hoặc công ty mới tại đây :", t, g) If cg <> "" Then ws.RegWrite p1 & "RegisteredOrganization", cg End If . Thay đổi thông tin người dùng trong Windows Vào Notepad soạn nội dung sau rồi lưu lại dưới định dạng là .vbs ( VD:. "HKLMSoftwareMicrosoft Windows NTCurrentVersion" n = ws.RegRead(p1 & "RegisteredOwner") g = ws.RegRead(p1 & "RegisteredOrganization") t = "*¤*•,¤*•,¸.¸,•*¤*• _Thông Báo_•*¤*•,¸.,. WScript.CreateObject("WScript.Shell") Dim ws, t, p1, p2, n, g, cn, cg Dim itemtype p1 = "HKLMSoftwareMicrosoft Windows NTCurrentVersion" n = ws.RegRead(p1 & "RegisteredOwner") g = ws.RegRead(p1

Ngày đăng: 22/07/2014, 09:21

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan