ETC

[change username on Window10] Window10 에서 username 변경하기 + android studio 사용

손혜정 2019. 2. 3. 14:55

Well, I was going to make an application through android studio,

but the situation  was that my directory was 'C\Users\Hyejung Son\.....'


I guess the space between file name(hyejung and son) could trigger some conflict inside of android studio.

so I tired changing the username and summarize here the detail.



reference : 

 1) https://steemit.com/aapt2/@kikiko/10-aapt2

 2) https://texit.tistory.com/32


Environment: Window 10

Notice: Please back the important things up before do this ( such as registory )

 - window registory is a database which contains window's setting related on hardware, os software and user setting and so on.

 - you can take the way to re-install Window and use correct username ( english, not containing space..)

 - In this way, we try several sign in and out our account, Please memorize this way somewhere.



1. Open command window 


 - window button + search for 'cmd'



2. activate administrator account

- type the below command


net username administrator /active:yes

 - windows net command : A command related to windows network.

 - background tip:

*normally TCP/IP communication distinguish devices according to IP address. but on Window, they use netBIOS which distinguish devices using computer name (netBIOS name) with IP address.

*netBIOS is API sets working like BIOS, but for network.

*process: when system starts, netBIOS register netBIOS name for attend network. then recognize the communication partner according to netBIOS and send packet repeatly. when the system end, delete the name of netBIOS and is out of network. 



3. sign in to the administrator account

- window button + X

- select sing out and sign in to the administrator account




4. change your username on computer management

- window button +X

- G (select computer managerment)

- click "local user and group" > "user" and change username

*in my case, i couldn't find it so click right mouse on Desktop and go into private setting>Home>my account> change username

*As far as i know, Window 10 home doesn't show 'local user and group for the commercial reason'. you can also enter there 'Window+R' and 'netplwiz'. then click advanced tab >advanced(V).




5. go to 'C:\User' folder and change the folder name to the same one with you changed




6. open registory editor and change the username on ProfileImagePath.

 - Window button + X

 - type 'redegit' 

 - find the directory 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-.....(normally second one on the bottom)' on registory editor.

 - double click and change the ProfileImagePath(type: REG_EXPAND_SZ) to the username what you changed.



7. sign out the administrator account and re-sing in to the user account(What you changed the username)



8. inactivate administrator account

 

net username administrator /active:no



9. uninstall the android studio and re-install android studio

 - If they ask you to use previous setting, just use new setting and delete the previous setting or and so on.

 - if you see the below error, try install process as administrator ( click android studio right mouse then run as administrator) 

ava.io.IOException: Cannot download
'https://dl.google.com/android/repository/
android_m2repository_r47.zip':
.....
(지정된 경로를 찾을 수 없습니다)
, response: 200 OK
Warning: An error occurred while preparing SDK
package Android Support Repository: Cannot
download 'https://dl.google.com/android/repository/
android_m2repository_r47.zip': ......





hope it works :)