Windows 7 Forums


Windows 7: Change Computer Name with BAT file?

25 Jun 2012   #1

7 Ult x64 sp1
 
 
Change Computer Name with BAT file?

Hi,



Would like to know if its possible to change the computer name using a bat file, on Windows 7 64bit.




Thanks!

My System SpecsSystem Spec

25 Jun 2012   #2

Windows 7 Professional 32-bit (6.1, Build 7600)
Canberra, ACT
 
 

Hello there.
You can have a look at this website here: Change PC Name through Batch Script - Tweaking The Visual
It will tell you what you will need to do for making the BAT file.

Sincerely,
Sparrow.
My System SpecsSystem Spec
26 Jun 2012   #3

7 Ult x64 sp1
 
 

Thanks for that.

Just before I try it out, will it definitely work in Win 7 64?
Its just because its tagged as "tweaks" and "xp", so want to be sure in case it changes anything its not supposed to.


Thanks!
My System SpecsSystem Spec
.


26 Jun 2012   #4

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 14 MATE (64 bit)
Adelaide
 
 
Windows Backup & Macrium

Create a backup HDD image before you try it.

Tutorials
Macrium Reflect
Imaging with free Macrium
Windows Backup
Backup Complete Computer - Create an Image Backup

Last edited by lehnerus2000; 26 Jun 2012 at 09:11 PM.. Reason: Layout
My System SpecsSystem Spec
28 Jun 2012   #5

7 Ult x64 sp1
 
 

Doesn't seem to work.

I run the bat file as Admin, then cmd prompt appears with "Please enter your desired PC name:"
I type name, press enter, cmd closes.
Restart the pc, go into control panel>system, and computer name is still the same...
My System SpecsSystem Spec
28 Jun 2012   #6

Windows 7 Professional 32-bit (6.1, Build 7600)
Canberra, ACT
 
 

That is weird, it works perfectly for me.
My System SpecsSystem Spec
28 Jun 2012   #7

MS Windows 7 Ultimate 64-bit SP1
Somewhere in the middle of Desert :-)
 
 

Why you want to change the computer name using a batch file? Any particular reason? Batch files are mostly useful for applying to multiple systems.

To change for one system, the easiest way would be to go to Control Panel - System - Advanced System Settings - Computer Name tab - Click on Change button and rename the computer name to a new name click OK and reboot the system.

This is a pretty straight forward method.
My System SpecsSystem Spec
28 Jun 2012   #8

7 Ult x64 sp1
 
 

Quote   Quote: Originally Posted by BlackSparrow View Post
That is weird, it works perfectly for me.
So it shows the changed name in system properties?

Could you tell me what you did step by step?

If I use a third party info tool, it shows the new name, but sys properties and CMD ( hostname, ipconfig etc ) show old name.


Quote   Quote: Originally Posted by rraod View Post
Why you want to change the computer name using a batch file? Any particular reason? Batch files are mostly useful for applying to multiple systems.

To change for one system, the easiest way would be to go to Control Panel - System - Advanced System Settings - Computer Name tab - Click on Change button and rename the computer name to a new name click OK and reboot the system.

This is a pretty straight forward method.
I will use it on multiple systems. sysdm doesnt run.
My System SpecsSystem Spec
28 Jun 2012   #9

Windows 7 Professional 32-bit (6.1, Build 7600)
Canberra, ACT
 
 

Quote   Quote: Originally Posted by nevesswodniw View Post
Quote   Quote: Originally Posted by BlackSparrow View Post
That is weird, it works perfectly for me.
So it shows the changed name in system properties?

Could you tell me what you did step by step?

If I use a third party info tool, it shows the new name, but sys properties and CMD ( hostname, ipconfig etc ) show old name.
I just did what it said on the list i submitted.
My System SpecsSystem Spec
Reply

 Change Computer Name with BAT file? problems?



Thread Tools



Similar help and support threads for: Change Computer Name with BAT file?
Thread Forum
Starting a bat file on networked computer from local bat file question Network & Sharing
Solved How to change a media.bin file to a regular .bin file. General Discussion
How to set computer to change computer theme on battery? Themes and Styles
How do I change a file's file type (not only file association)? General Discussion
Change File Associations for LNK file? General Discussion


All times are GMT -5. The time now is 08:12 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd