Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Changing Station Names Using CMD

  • 26-09-2007 4:29pm
    #1
    Closed Accounts Posts: 511 ✭✭✭


    Hey Party Peeps!

    Anyone got any idea how to change a pc name using CMD.
    I know there is the 'netsh' or 'netdom' command.

    'netsh' I dont have a clue how to do.

    'netdom' Fails each time, i think because i dont have a domain.

    Anyone wanna write and post a sample bat for me.....
    PLEASE!!! Doing my head in.

    Cheers Guys!!


Comments

  • Closed Accounts Posts: 388 ✭✭Troublesome


    Start > Right click on my computer > properties > computer name tab.


  • Closed Accounts Posts: 511 ✭✭✭Undercoverguy


    Using CMD


  • Moderators, Regional Midwest Moderators Posts: 11,183 Mod ✭✭✭✭MarkR


    If you could explain why you need to change the computer name from the command prompt it may help. Particularly as if you are typing cmd you are at a run command, implying you're in windows.


  • Closed Accounts Posts: 511 ✭✭✭Undercoverguy


    Sorry i should have told ya's why i need to do this.
    I'm using a program called SNAP Deploy for work.
    This deploys a single hard disk image to over 50 workstations in one go.
    Problem is when they all boot up after the deploy they will all have the same IP and Name and so conflict. (Our workstations need static IP). Each stations needs to have a certain name and ip on our network.

    The program gives the option of running seprate batch files for each station upon their first boot.
    So i was planning on writing 50 bat files, one for each machine which will change the IP, name and other various settings.

    I will be deploying this image on a weekly basis and so this could save me literally HOURS of work as the only other option is to manually change the settings on each machine from within windows.

    Hope this helps....

    Cheers


  • Registered Users, Registered Users 2 Posts: 1,849 ✭✭✭Redisle


    You could use Newsid

    I used to use this all the time for deploying systems during the summer,
    If you want to run it from cmd you just make sure the exe is in the same directory as your batch file and type "newsid /a Newnamehere" It will apply a new sid ( Which you need to do anyway because all 50 machines would have the same one from the image..) and It will rename the computer to whatever you specify and restart the machine when it is done.
    Edit: Didnt read your post properly, this will just do the name, you would have to use a different command to set a static Ip, but couldnt you leave it at get automatically and set a static Ip by mac address from your dhcp server?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,949 ✭✭✭SouperComputer


    tis a bit late now, but whoever made the image should have sysprepped it.


  • Registered Users, Registered Users 2 Posts: 21,499 ✭✭✭✭Alun


    You can use netsh easily to set the IP address if you need to.

    E.g. netsh interface ip set address name="Local Area Connection" source=static addr=192.168.1.100 mask=255.255.255.0 gateway=192.168.1.1


Advertisement