Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    [XP] Cambio nome computer da riga di comando

    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

  2. #2
    Utente di HTML.it L'avatar di Spaolithos
    Registrato dal
    Oct 2001
    Messaggi
    5,772
    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

  3. #3
    Utente di HTML.it L'avatar di Spaolithos
    Registrato dal
    Oct 2001
    Messaggi
    5,772

    soluzione alternativa:

    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

  4. #4
    buona la seconda!

    Grazie mille!

    Conosci anche la chiave di registro in cui è impostato il gruppo di lavoro?

    Grazie ancora

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.