Xem bản tiếng việt đầy đủ tại đây : http://thethao60s.com/index/2257072/04082009.aspx

Thay doi ten so huu trong Windows XP
Quan sat chi tiet thong tin dang ky

Cac thong tin dang ky thuong bao gom ten cua chu so huu va ten cong ty (neu duoc chi dinh) va thuong duoc luu trong registry duoi dang cac chuoi van ban don gian. Ten cua chu so huu duoc luu trong khoa RegisteredOwner, con ten cong ty duoc luu trong khoa RegisteredOrganization. Cac thong tin dang ky duoc hien thi tren tab General cua hop thoai System Properties, phan Registered To nhu the hien trong hinh A ben duoi.

Hinh A: Ten nguoi dung va ten cong ty xuat hien trong tab General cua hop thoai System Properties.

Se khong co van de gi neu nguoi dung nay van su dung may tinh cua ho, tuy nhien trong truong hop chuyen may tinh cho mot nguoi khac trong cong ty su dung thi chac han ai cung can phai thuc hien mot so thay doi.

Back up!

Mot chu y quan trong hang dau khi lam viec voi registry. Nhung thay doi khong co y doi voi registry cua ban co the gay ra do vo he thong. Chinh vi vay ban phai thuc hien hanh dong back up he thong cua minh truoc khi mo registry.

Nhu nhung gi chac han cac ban da biet, cau truc cua registry trong cac he dieu hanh cua Microsoft kha giong nhau. Ve diem chung la vay nhung chung cung co mot so diem khac biet. Trong cac he dieu hanh Windows 95, Windows 98 va Windows Me, cac khoa RegisteredOwner va RegisteredOrganization deu duoc luu trong khoa:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Trong Windows NT, Windows 2000 va Windows XP, cac khoa duoc luu trong khoa:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Cac khoa trong

Can luu y rang mot hoac ca hai khoa RegisteredOwner va RegisteredOrganization deu co the de trong. Noi mot cach khac la cac khoa nay van ton tai trong registry nhung chung gom mot chuoi trong rong.

Viec tu dong thay doi registry

Nhu da duoc de cap o tren, viec tu chinh sua cac thong tin dang ky trong registry thong qua Registry Editor can doi hoi su tinh te va ton kem nhieu thoi gian. Tuy nhien Windows Script Host cung cap cac phuong phap lap trinh co the cho phep ban tu dong hoa qua trinh chinh sua registry. Hai phuong phap ma chung toi su dung trong kich ban nay la RegRead va RegWrite.

Nhu ten cua no ngu y, phuong phap RegRead cho phep ban truy cap mot khoa trong registry va doc gia tri duoc luu trong khoa do. Nguoc lai phuong phap RegWrite lai cho phep ban thay doi gia tri cua bat cu khoa nao trong registry.

Windows Script Host con cung cap cho ban nhieu phuong phap trong viec thay doi registry, chang han nhu RegDelete. Mac du vay, do tien ich Registration Changer khong thuc su can xoa bat moi thu tu registry va ben canh do phuong phap RegWrite cung cho phep ban ghi de len mot gia tri nao do ton tai truoc, do do ban co the se khong can den phuong phap RegDelete trong kich ban ma chi can biet den su ton tai cua no la du.

De su dung cac phuong phap RegRead va RegWrite, ban can biet chinh xac ten cua khoa trong registry ma minh muon thay doi cung nhu duong dan chinh xac cua no. Ben canh do ban cung can biet chinh xac kieu du lieu ma khoa do nam giu. Khong de cap qua chi tiet den van de nay, ban chi can biet co bon kieu du lieu khac nhau ma registry gom co do la: kieu chuoi, kieu gia tri 32-bit khong dau, du lieu nhi nguyen phan va chuoi macro co kha nang mo rong.

Cai dat tien ich Registration Changer

Khi da download duoc tien ich Registration Changer, ban chi can kich dup vao file RegChange Installation.exe de cai dat no. Khi kich dup, chuong trinh cai dat se nhac ban chon mot thu muc de cai dat ung dung. Neu thu muc khong ton tai, chuong trinh cai dat se tao no cho ban.

Sau khi cai dat tien ich Registration Changer, ban se thay hai file duoi day trong thu muc da chon cua minh:

RegChange.hta
RegChange.ico

Ro rang, file RegChange.hta la file HTA ma ban se su dung de khoi chay ung dung. File RegChange.ico gom co bieu tuong ma HTA su dung cho menu dieu khien va thanh tac vu (taskbar).

Su dung tien ich Registration Changer

Viec su dung tien ich Registration Changer rat don gian. Sau khi ban cai dat tien ich xong, chi can kich dup vao file HTA de khoi chay no. Neu thich, ban co the tao mot shortcut den file HTA va dat shortcut do tren menu Start cua minh. Khi khoi chay tien ich Registration Changer ban se thay man hinh chinh nhu the hien trong hinh B ben duoi.

Hinh B: Tien ich Registration Changer cho phep ban de dang thay doi thong tin dang ky

De bat dau, ban can chon he dieu hanh ma minh dang su dung. Nhu nhung gi ban co the thay, cac he dieu hanh duoc nhom theo location trong registry, noi cac khoa RegisteredOwner va RegisteredOrganization duoc luu. Neu ban that bai trong viec chon he dieu hanh va kich cac nut Display hoac OK, khi do ban se thay mot thong bao loi nhu the hien trong hinh C. Khi kich OK, ban se duoc dua tro ve man hinh chinh va co the bat dau lai.

Hinh C: Neu that bai trong viec chon he dieu hanh truoc khi bat dau,
ban se thay mot thong bao loi.

Bao dam chon dung he dieu hanh

Viec chon dung he dieu hanh la dieu rat quan trong trong khau nay. Neu ban chon sai he dieu hanh thi Registration Changer se ap dung nhung thay doi cho location sai trong registry. Khi xay ra dieu do, thong tin registry ma ban muon thay doi se nguyen nhu cu va se xuat hien nhung thu khong can thiet trong registry. Neu ap dung nhung thay doi khong dung voi he dieu hanh, ban co the de dang remove nhung thu khong can thiet bang cach chay tien ich lan nua va bo trong cac hop van ban.

Sau khi chon mot he dieu hanh, ban co the xem thong tin dang ky hien hanh cho he thong bang cach kich nut Display. Khi thuc hien dieu do, ban se thay cac thong tin hien dang duoc dang ky hien thi trong hop thoai nhu trong hinh D.

Hinh D: Tien ich Registration Changer co the hien thi cac thong tin dang ky truoc khi ban tao cac thay doi

Neu muon thay doi cac thong tin dang ky, ban chi can nhap vao cac hop thoai thich hop va kich OK. Khi do, ban se duoc nhac nho xac nhan hoat dong truoc khi bat dau, xem the hien trong hinh E.

Hinh E: Truoc khi Registration Changer tao su thay doi doi voi registry, no se cho phep ban tuy chon bai bo hoat dong.

Neu chon No, ban se duoc dua tro ve man hinh chinh va co the bat dau lai. Neu kich Yes, Registration Changer se ap dung cac thay doi cho registry. Sau do ban co the kiem tra ngay lap tuc cac ket qua bang cach kich nut Display. Khi thuc hien xong thao tac do, ban co the kich Cancel hoac kich Close, khi do cua so Registration se dong lai.

Xoa cac thong tin dang ky

Neu ban thich xoa cac thong tin dang ky thay cho viec nhap vao cac ten moi, hay de trong cac hop van ban va kich OK.

Do la tat ca nhung gi ban can thuc hien voi tien ich nay. Registration Changer cho phep ban de dang hon trong viec chinh sua registry ma khong qua lo so. Tuy nhien nhu nhung gi chung toi da gioi thieu truoc, ban van can thuc hien back up he thong truoc khi can thiep vao registry.

Van Linh (Theo Techrepublic)