Change Computer Name with BAT file?

nevesswodniw

New member
Member
Local time
1:35 PM
Messages
35
Hi,



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




Thanks!
 

My Computer

OS
7 Ult x64 sp1
CPU
intel i
Motherboard
z68
Memory
ddr3 2GB+
Graphics Card(s)
nvidia pcie
Monitor(s) Displays
lcd
Hard Drives
sata2
PSU
600W
Cooling
fans

My Computer

Computer Manufacturer/Model Number
Hewlett-Packard
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
Memory
4096MB RAM
Graphics Card(s)
Radeon ATI HD4870
Monitor(s) Displays
NVIDIA GeForce GT220
Screen Resolution
1680 x 1050
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 Computer

OS
7 Ult x64 sp1
CPU
intel i
Motherboard
z68
Memory
ddr3 2GB+
Graphics Card(s)
nvidia pcie
Monitor(s) Displays
lcd
Hard Drives
sata2
PSU
600W
Cooling
fans
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
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 Computer

OS
7 Ult x64 sp1
CPU
intel i
Motherboard
z68
Memory
ddr3 2GB+
Graphics Card(s)
nvidia pcie
Monitor(s) Displays
lcd
Hard Drives
sata2
PSU
600W
Cooling
fans
That is weird, it works perfectly for me.
 

My Computer

Computer Manufacturer/Model Number
Hewlett-Packard
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
Memory
4096MB RAM
Graphics Card(s)
Radeon ATI HD4870
Monitor(s) Displays
NVIDIA GeForce GT220
Screen Resolution
1680 x 1050
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 Computer

Computer Manufacturer/Model Number
Toshiba Satellite P775-S7232
OS
MS Windows 7 Ultimate 64-bit SP1
CPU
i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Bridge 32nm
Motherboard
Toshiba PHRAA ver. PSBY1U-00F003
Memory
4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz)
Graphics Card(s)
Video Intel(R) HD Graphics Family, 1696MB available memory
Sound Card
Realtek High Definition Audio version=6.0.1.6323
Monitor(s) Displays
17.3 " Trubrite TFT LCD, LED Backlit
Screen Resolution
1600x900 32 bit, Native support for 720P content
Hard Drives
TOSHIBA MK6476GSXN
580.614 [GB] partitioned C: 80GB and D: 500GB with hidden recovery partitons.

Spare bay for 2nd HDD but no SATA connector :-(
PSU
Toshiba AC/DC Adapter
Case
Notebook
Cooling
Built-in Fan
Keyboard
Premium Raised Tile keyboard
Mouse
Logitech M215 wireless mouse
Internet Speed
Not fast enough
Other Info
Built-in Harman Kardon speakers with Dolby Advanced Audio, Waves MaxxAudio® 3. HDMI, 1xUSB3+3xUSB2 ports, WebCam, Battery life 4hrs 11mins, 4GB Readyboost SDHC card, WD My Book Essential Ext HDDs 2 TB, 2x1TB, My Passport SE 1TB and WDTV 1st Gen for Multimedia playing on a Sony Wega 32" LCD.
Recent addition to my toys are Asus Transformer Pad TF300T with 32GB onboard sd card + 32GB microsd card.
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.


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 Computer

OS
7 Ult x64 sp1
CPU
intel i
Motherboard
z68
Memory
ddr3 2GB+
Graphics Card(s)
nvidia pcie
Monitor(s) Displays
lcd
Hard Drives
sata2
PSU
600W
Cooling
fans
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 Computer

Computer Manufacturer/Model Number
Hewlett-Packard
OS
Windows 7 Professional 32-bit (6.1, Build 7600)
Memory
4096MB RAM
Graphics Card(s)
Radeon ATI HD4870
Monitor(s) Displays
NVIDIA GeForce GT220
Screen Resolution
1680 x 1050
Back
Top