Windows telnet default path modification

  
                  

The ssh service is installed on the host. When we manage it, we can use ssh connection through secureCRT. Due to the requirements of the application, we require ssh to connect to the server and must be in C:\\Documents and Settings\\Administrator>, and when we run on the server --cmd enters the default path is C:\\Documents and Settings\\Administrator> .

But I don't know why. Some machines don't have such standards. For example, my machine path is C:\\Documents and Settings\\anywolfs.com>, which makes me very depressed. I have to modify it to a standard path. Today I found a very simple method, but it is manual. :

Found: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\S-1-5-21-1790271045-1411784089-857767003-500\\

Under:ProfileImagePath, Modify the key value to restart the server for %SystemDrive%\\Documents and Settings\\Administrator

.

Of course there is a long list of SIDs such as: S-1-5-21-1790271045-1411784089-857767003-500, this id is different for each machine, and at HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT There are many such IDs under \\CurrentVersion\\ProfileList\\. How do we distinguish which ones we need to modify?

First of all: start--run--cmd, this time open the command line window, the default root directory inside (such as my C:\\Documents and Settings\\anywolfs.com>) actually \\Documents And Settings\\anywolfs.com is a key-value part in the registry. We can find the key value of the primary key ProfileImagePath of type REG_EXPAND_SZ under all the ids of HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\. Br>

%SystemDrive%\\Documents and Settings\\anywolfs.com

Modify this as %SystemDrive%\\Documents and Settings\\Administrator, get it

Copyright © Windows knowledge All Rights Reserved