Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# コンピューター名を [RX-7] に変更
PS C:\Users\Administrator> Rename-Computer -NewName RX-7 -Force -PassThru
HasSucceeded OldComputerName NewComputerName
------------ --------------- ---------------
True WIN-09CAI7I6MKP RX-7
WARNING: The changes will take effect after you restart the computer WIN-09CAI7I6MKP.
# プライマリ DNS Suffix を [srv.world] に設定
PS C:\Users\Administrator> Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\" -Name "NV Domain" -Value "srv.world" -PassThru
NV Domain : srv.world
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi
ces\Tcpip\Parameters\
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi
ces\Tcpip
PSChildName : Parameters
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
# 変更を有効にするため再起動
PS C:\Users\Administrator> Restart-Computer -Force
# 再起動後の確認
PS C:\Users\Administrator> (ipconfig /all)[0..9]
Windows IP Configuration
Host Name . . . . . . . . . . . . : RX-7
Primary Dns Suffix . . . . . . . : srv.world
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : srv.world
|