|
|
大家只好把下面的内容复制到记事本中,然后存为扩展名为vbs的文件(如change.vbs)就行了。
以后双击他后就可以更改系统用户、组织和电脑名称了。Option Explicit
Set ws = WScript.CreateObject("WScript.Shell")
Dim ws, n, cn
Dim itemtype
n = ws.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\RegisteredOwner")
cn = InputBox("请输入新的用户名称:", "改变电脑用户名称", n)
If cn <> "" Then
ws.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\RegisteredOwner", cn
End If
n = ws.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization")
cn = InputBox("请输入新的公司名称:", "改变您的公司名称", n)
If cn <> "" Then
ws.RegWrite "HKLM\Software\Microsoft\Windows NT\CurrentVersion\RegisteredOrganization", cn
End If
n = ws.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName")
cn = InputBox("请输入新的电脑名称:", "改变您的用脑名称", n)
If cn <> "" Then
ws.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName", cn
ws.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV Hostname", cn
End If
呵呵,简单吧!不过这个只能适用Win2000以上噢,Win98和WinME大家可以自己修改以上代码。
|
|