Ciao a tutti!
E' possibile cambiare il nome del PC tramite riga di comando in Windows XP?
Ho trovato il comando netdom.exe, ma funziona solo nel caso il PC sia membro di un dominio. Nel caso non lo fosse c'è la possibilità?
GRAZIE ANTICIPATAMENTE
![]()
![]()
![]()
![]()
![]()
![]()
Ciao a tutti!
E' possibile cambiare il nome del PC tramite riga di comando in Windows XP?
Ho trovato il comando netdom.exe, ma funziona solo nel caso il PC sia membro di un dominio. Nel caso non lo fosse c'è la possibilità?
GRAZIE ANTICIPATAMENTE
![]()
![]()
![]()
![]()
![]()
![]()
Tratto da microsoft.public.win2000.cmdprompt.admin
Q: I would like to change a computer name from a command line. Is this possible?
Re: NewSID.exe
http://www.sysinternals.com/ntw2k/source/newsid.shtml
The command is: newsid /a newname
Would have NewSID run without prompting, change the computer name to "newname" and have it reboot the computer if everything goes okay.
The computer name change can be done with some registry changes instead...
Anche io ho aderito al NoKappa
Changing computer name for WNT/W2k/WXP with vbscript
sNewName = "put new name here"
Set oShell = CreateObject ("WSCript.shell")
sCCS = "HKLM\SYSTEM\CurrentControlSet\"
sTcpipParamsRegPath = sCCS & "Services\Tcpip\Parameters\"
sCompNameRegPath = sCCS & "Control\ComputerName\"
With oShell
.RegDelete sTcpipParamsRegPath & "Hostname"
.RegDelete sTcpipParamsRegPath & "NV Hostname"
.RegWrite sCompNameRegPath & "ComputerName\ComputerName", sNewName
.RegWrite sCompNameRegPath & "ActiveComputerName\ComputerName", sNewName
.RegWrite sTcpipParamsRegPath & "Hostname", sNewName
.RegWrite sTcpipParamsRegPath & "NV Hostname", sNewName
End With ' oShell
MsgBox "Computer name changed, please reboot your computer"
Anche io ho aderito al NoKappa
buona la seconda!
Grazie mille!
Conosci anche la chiave di registro in cui è impostato il gruppo di lavoro?
Grazie ancora