시스템 폴더 이동법
2007.01.16 18:18
This is about as late of a post as you can get from the original post.. but here it goes...
I must remind you that moving a production server with users accounts on it will be a pain in the arce.. its best to do this before you add users, or invest in advil....
This has been working for me 98% of the time so I thought I would share it...
Steps:
Log in as administrator
Create a backup copy of your registry
create a user with admin privilages (just call it temp and add him to the administrators group)
Log out
Log back in as temp
Create d:Documents and settings
run the big registry key from below
Run regedit
search for "%systemdrive%doc" and change %systemdrive% to d: (should be 3 changes on a clean system with temp account created)
Go to HKLMSYSTEMCONTROLSET001CONTROLHIVELIST
you will see 2 SIDs at the bottom of that key similar to the following...
\REGISTRY\USER\S-1-5-21-602162358-616249376-839522115-1001"="\Device\HarddiskVolume3\Documents and Settings\temp\NTUSER.DAT"
"\REGISTRY\USER\S-1-5-21-602162358-616249376-839522115-1001_Classes"="\Device\HarddiskVolume3\Document s and Settings\temp\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat"
you will want to increment the HarddiskVolume to the correct location.. for example if you currently have volume2 for the c: drive, change that to volume 3 for the d: drive for each of those keys. This will also change the harddiskVolume for the other keys in the registry that work with the documents and settings folder.
Copy the folders (except the temp user folder and all users folder) from c:documents and settings to inside d:Documents and settings
Log out of the temp account and back in as administrator
try to copy the all users folder over to the d: drive and rename the c:documents and settings folder to another name. if succesfull you are done if you cannot rename it, you will need to complete this by doing the steps in this next section.
the only issue that i have come across is some times in server builds the following...
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurr entVersionExplorerShell Folders]
"Common Start Menu"="D:\Documents and Settings\All Users\Start Menu"
"Common Desktop"="D:\Documents and Settings\All Users\Desktop"
"Common AppData"="D:\Documents and Settings\All Users\Application Data"
"Common Programs"="D:\Documents and Settings\All Users\Start Menu\Programs"
"Common Documents"="D:\Documents and Settings\All Users\Documents"
"Common Administrative Tools"="D:\Documents and Settings\All Users\Start Menu\Programs\Administrative Tools"
"Common Startup"="D:\Documents and Settings\All Users\Start Menu\Programs\Startup"
"Common Templates"="D:\Documents and Settings\All Users\Templates"
some times doesnt apply the changes to the registry when I log back in the work around I came up with that works is reboot in safe mode and make the changes to those keys and then rename the docs and settings folder on the c: drive. the next time you reboot you can delete that folder then.
This was made for Windows server 2000 and assuming that you will be moving the folders to the d: drive, but should be a good starting point for all other MS OS versions..
-------------Copy Here--------------
I must remind you that moving a production server with users accounts on it will be a pain in the arce.. its best to do this before you add users, or invest in advil....
This has been working for me 98% of the time so I thought I would share it...
Steps:
Log in as administrator
Create a backup copy of your registry
create a user with admin privilages (just call it temp and add him to the administrators group)
Log out
Log back in as temp
Create d:Documents and settings
run the big registry key from below
Run regedit
search for "%systemdrive%doc" and change %systemdrive% to d: (should be 3 changes on a clean system with temp account created)
Go to HKLMSYSTEMCONTROLSET001CONTROLHIVELIST
you will see 2 SIDs at the bottom of that key similar to the following...
\REGISTRY\USER\S-1-5-21-602162358-616249376-839522115-1001"="\Device\HarddiskVolume3\Documents and Settings\temp\NTUSER.DAT"
"\REGISTRY\USER\S-1-5-21-602162358-616249376-839522115-1001_Classes"="\Device\HarddiskVolume3\Document s and Settings\temp\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat"
you will want to increment the HarddiskVolume to the correct location.. for example if you currently have volume2 for the c: drive, change that to volume 3 for the d: drive for each of those keys. This will also change the harddiskVolume for the other keys in the registry that work with the documents and settings folder.
Copy the folders (except the temp user folder and all users folder) from c:documents and settings to inside d:Documents and settings
Log out of the temp account and back in as administrator
try to copy the all users folder over to the d: drive and rename the c:documents and settings folder to another name. if succesfull you are done if you cannot rename it, you will need to complete this by doing the steps in this next section.
the only issue that i have come across is some times in server builds the following...
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurr entVersionExplorerShell Folders]
"Common Start Menu"="D:\Documents and Settings\All Users\Start Menu"
"Common Desktop"="D:\Documents and Settings\All Users\Desktop"
"Common AppData"="D:\Documents and Settings\All Users\Application Data"
"Common Programs"="D:\Documents and Settings\All Users\Start Menu\Programs"
"Common Documents"="D:\Documents and Settings\All Users\Documents"
"Common Administrative Tools"="D:\Documents and Settings\All Users\Start Menu\Programs\Administrative Tools"
"Common Startup"="D:\Documents and Settings\All Users\Start Menu\Programs\Startup"
"Common Templates"="D:\Documents and Settings\All Users\Templates"
some times doesnt apply the changes to the registry when I log back in the work around I came up with that works is reboot in safe mode and make the changes to those keys and then rename the docs and settings folder on the c: drive. the next time you reboot you can delete that folder then.
This was made for Windows server 2000 and assuming that you will be moving the folders to the d: drive, but should be a good starting point for all other MS OS versions..
-------------Copy Here--------------
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1339 | 발표 그리고 발표 그리고 또 발표 | NEWTYPE | 2003.06.06 | 2078 |
1338 | LOVE | NEWTYPE | 2003.06.06 | 2076 |
1337 | 도약 | NEWTYPE | 2003.06.06 | 2037 |
1336 | 기대 수명 계산기 | NEWTYPE | 2003.06.07 | 2073 |
1335 | 승석아 논문 좀 부탁. from 이갑석 | 이갑석 | 2003.06.12 | 2239 |
1334 |
Re: 승석아 논문 좀 부탁. from 이갑석
![]() | 한승석 | 2003.06.13 | 2096 |
1333 | Web page load | IDEON | 2003.06.15 | 2018 |
1332 | Windows 2000 서비스 | IDEON | 2003.06.15 | 1989 |
1331 | Windows Key 의 활용 | IDEON | 2003.06.15 | 3898 |
1330 | 시카고 | 한승석 | 2003.06.22 | 2081 |
1329 |
Ctrl-A 의 비밀
![]() | 한승석 | 2003.06.23 | 2090 |
1328 |
세개가 놀란 그 사진
![]() | 한승석 | 2003.06.23 | 2117 |
1327 | 메이ㅔㄹ 주소 | han | 2003.06.23 | 2075 |
1326 | 후후훗... 간부숙소닷]ㅂ[/ | whria | 2003.07.13 | 2072 |
1325 |
KT133 보드에서 써러브레드 사용법
![]() | 한승석 | 2003.07.18 | 2699 |