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

W7 Ultimate SP1, LM 17.3 MATE, W10IP VM, W10 Home, #All 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




Similar help and support threads
Thread Forum
How to create .bat file to change the text in an .ini file?
I have the original Zoo Tycoon. It has no built in widescreen support, but it's possible to get it by changing some information in its .ini file. I don't want to leave it at that though, as I also have a 4:3 monitor, and I switch between the two. I don't want to have to go into the ini file and...
Gaming
All icon change to WMP and all target type change to EXE File
hey guyss..i have problem with my computer....all my icon change to Windows media player and all target type change to EXE File...what should i do.....plzzz... #sorry for my bad english.. Windows 7 Ultimate 32 bit sp1 2 gb ram
General Discussion
Starting a bat file on networked computer from local bat file question
Hello everyone, I have a bat file that is launched when a torrent finishes downloading on my laptop which launched robocopy to copy it to my server computer. I want to have the server run a few programs to extract the file and move it to the correct directory structure. I want to launch a...
Network & Sharing
How to change a media.bin file to a regular .bin file.
This is a new one for me. I downloaded a zip file that I need to rollback a media player to it original firmware. I know how to do it using a usb drive. The problem is that the .bin file I need access to, when it is extracted from the zip file is a media file (VLC). On its properties page it is...
General Discussion
How do I change a file's file type (not only file association)?
I need to change a zip file to an epub file. I have heard this can be done, but when I add the .epub after the file name, I notice the file is still actually zip type file when I right click properties. This is causing a problem when I try to open it in in different ebook reader programs. I...
General Discussion
Change File Associations for LNK file?
A co-worker must have changed the file associations for ".LNK" shortcut files. All the shortcuts on her desktop are now the wrong icons and all try to start Windows Media Player, when clicked on. I'd like to change the file association for .LNK files. It seems straightforward to change this. I...
General Discussion


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 05:38.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App