2009-09-10 2 views

답변

2
ManagementClass mComputerSystem = new ManagementClass("Win32_ComputerSystem"); 
ManagementBaseObject outParams; 
ManagementBaseObject objNewComputerName = mComputerSystem.GetMethodParameters("Rename"); 
objNewComputerName["Name"] = "NEWNAMEHERE"; 
outParams = mComputerSystem.InvokeMethod("Rename", objNewComputerName, null); 
1

이러한 레지스트리 키를 편집하고 재부팅하십시오. 컴퓨터 브라우저와 서버 및 클라이언트 서비스를 다시 시작하면 문제가 발생할 수 있지만 문제는 아닌지 확인하십시오.

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Hostname 
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV Hostname 
HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName