Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Change Computer Name with BAT file?


25 Jun 2012   #1
nevesswodniw

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 win7 64bit.




Thanks!


My System SpecsSystem Spec
.

25 Jun 2012   #2
BlackSparrow

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

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
nevesswodniw

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
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
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
My System SpecsSystem Spec
28 Jun 2012   #5
nevesswodniw

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
BlackSparrow

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

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

MS Windows 7 Ultimate 64-bit SP1
 
 

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
nevesswodniw

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
BlackSparrow

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

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?




Thread Tools




Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 04:31 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App