Solved Host name is not reflecting in CMD

Samsung Galaxy trend lite gt-s7392l duos...
July 11, 2017 at 07:36:58
Specs: windows, 8gb
Hi There,

I've changed the hostname for my PC but when I tried to launch CMD its still reflecting the old Hostname. Is there any possible to way to change the name without wiping the root drive ?

Much Thanks in Advance.


See More: Host name is not reflecting in CMD

Reply ↓  Report •

✔ Best Answer
July 12, 2017 at 00:28:00
When windows was installed a computer name was entered during setup and a user with that same name was configured. That name appears in the path you see when you drop into command prompt. If you change the computer name you haven't changed the folder name. That folder name is involved in the path that windows uses to keep track of files. If you change that folder name you have to change every reference in the registry from the old name to the new one.

It seems like I was messing around with that a few years ago and decided the easiest way was to add a new user in the name you now want, make sure all personal files are copied to the new user and then delete the old user name.

However you might use the terms change computer name "documents and settings" in a google search for perhaps a better idea.

--Yes but it's a dry heat.



#1
July 11, 2017 at 07:49:15
You're going to have to define "hostname" here, because I suspect our definitions differ.

If you're talking about the actual computer's name, you'll need to reboot before the changes are reflected, as the popup (or API documentation) should have told you.

How To Ask Questions The Smart Way


Reply ↓  Report •

#2
July 11, 2017 at 13:56:43
Yeah, command prompt will show the folder/directory it's defaulting into. Likely what you mean by 'hostname' wouldn't change the names of those folders.

--Yes but it's a dry heat.

message edited by DAVEINCAPS


Reply ↓  Report •

#3
July 11, 2017 at 14:49:17
User directory is possible to change, but that's a lot more work than changing the system name and it's not officially supported by MS.

How To Ask Questions The Smart Way


Reply ↓  Report •

Related Solutions

#4
July 11, 2017 at 19:39:02
How did you change "hostname" of a windows computer?
Default command prompt only displays home-directory/folder.
Command "hostname" will display "computer-name" as set in your computer system properties

Reply ↓  Report •

#5
July 11, 2017 at 23:26:59
For instance, Initially the computer name was 'Frank Underwood' now I want change the name as 'Frank' and I've done with this renaming. Besides I've changed the owners name in registry but command prompt still shows 'Frank Underwood'. Now my question is why it still showing the old name ? Is there any possible way to change this?

Reply ↓  Report •

#6
July 12, 2017 at 00:28:00
✔ Best Answer
When windows was installed a computer name was entered during setup and a user with that same name was configured. That name appears in the path you see when you drop into command prompt. If you change the computer name you haven't changed the folder name. That folder name is involved in the path that windows uses to keep track of files. If you change that folder name you have to change every reference in the registry from the old name to the new one.

It seems like I was messing around with that a few years ago and decided the easiest way was to add a new user in the name you now want, make sure all personal files are copied to the new user and then delete the old user name.

However you might use the terms change computer name "documents and settings" in a google search for perhaps a better idea.

--Yes but it's a dry heat.


Reply ↓  Report •

#7
July 12, 2017 at 06:01:39
Off the top of my head it's a 10 step process, but messing up might lead to losing the user profile.

Step 1) Unlock/Use Administrator account
Step 2) Rename directory
Step 3) Update ProfileList
Step 4) Mount profile's registry
Step 5) Update profile's registry
Step 6) Unmount profile's registry
Step 7) Make a junction
Step 8) Set security for junction
Step 9) Test profile
Step 10 [Optional]) Cleanup; relock Administrator and delete its profile

How To Ask Questions The Smart Way

message edited by Razor2.3


Reply ↓  Report •

Ask Question