史萊姆論壇

返回   史萊姆論壇 > 教學文件資料庫 > 作業系統操作技術文件
忘記密碼?
論壇說明 標記討論區已讀

歡迎您來到『史萊姆論壇』 ^___^

您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的!

請點擊這裡:『註冊成為我們的一份子!』

Google 提供的廣告


 
 
主題工具 顯示模式
舊 2004-01-08, 05:58 AM   #1
psac
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設 如何更改XP「使用者設定檔」的路徑

這個方法我是從gavotte那裡學來的。我試了一下,果然可以,所以就寫了這篇簡單的介紹。gavotte的原文如下:



Q. neuroglia
WinXP預設把用戶的我的文件、收藏夾什麼的都放到C:\Documents and Settings的相應目錄中。為了資料的安全,我想把這些內容都存到另一個分區上,比如說D:\Documents and Settings,這樣C碟有問題時,個人資料可以方便地恢復。
請問,哪位知道如何修改WinXP的預設設定,實現我的要求呢?

A. gavotte
系統裝好也可以改,就是上一級註冊表的 ProfilesDirectory改掉,再改下面每個用戶配置。搬動用戶目錄稍微麻煩點,可以新增一個新管理員來搬,搬完刪掉。註冊表裡可能還有一些對All Users和Administrator的目錄引用,要逐個改。
如果只是搬動單個用戶,就沒這麼麻煩,照上面說的就行了。
我的正文開始:

所謂「使用者設定檔」就是儲存桌面設定和其他與用戶帳戶有關的信息。所有用戶的配置文件通常在C:\Documents and Settings中。下面我們就來讓它換換位置。
先來介紹一下移動單個用戶(比如SleepBoy)的方法。總共只有2步,而且做起來也很簡單。
1. 開啟註冊表編輯器,來到
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

在它下面有幾個子鍵,找到屬於被修改用戶的那個(關鍵就是看ProfileImagePath),然後把ProfileImagePath改成另外的路徑。

如下顯示:
註冊檔編輯 regedit>打開>
profile list
profileimagepath Reg_Expand_sz d:\documents and settings\sellpboy

2. 建立D:\Documents and Settings目錄,然後把C:\Documents and Settings目錄中的SleepBoy資料夾拷到D:\Documents and Settings中就行了。

如果這時正好是用SleepBoy登入的,那麼就要先註銷,然後換另一個具有管理員權限的用戶登入,比如Administrator,接著就和前面一樣了。


重新用SleepBoy登入後,在桌面新增一個資料夾,然後雙按開啟,看看位址欄是不是寫著 D:\Documents and Settings\SleepBoy\桌面\新增資料夾,如果是,就說明修改成功了。

此時,SleepBoy的「收藏夾」、「IE臨時目錄」、「開始選單」、「其他軟體的配置文件」等,都自動換到D碟了。

以後C碟中的這個SleepBoy資料夾就可以完全刪除了。

最後再來說一下把整個C:\Documents and Settings搬家的方法。第一步當然也是修改註冊表,只不過這次要把所有子鍵的ProfileImagePath鍵值都改一遍。

第如果是新系統安裝時,可以指定用戶資料夾的位置的....

Cannot Move or Rename the Documents and Settings Folder
適用於
This article was previously published under Q236621
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry

SYMPTOMS
If you try to move or rename the "Documents and Settings" folder in Windows, you receive the following error message:

"Documents and Settings is a Windows system folder and is required for Windows to run properly. It cannot be moved or renamed."
CAUSE
This behavior is by design.
RESOLUTION
To specify a different folder for the "Documents and Settings" folder during installation, follow these steps:
Use the /UNATTEND switch with Winnt.exe or Winnt32.exe and insert the following entry into the Unattend.txt file, where z:\foldername is the path and folder name you want:
[GuiUNattended]
ProfilesDir = z:\foldername

Install Windows. The path you included in the Unattend.txt file is used instead of the default "Documents and Settings" folder.
For additional information about unattended setup of Windows 2000, click the article number below to view the article in the Microsoft Knowledge Base:
183245 Windows 2000 Unattended Setup Parameters

MORE INFORMATION
NOTE: The following section provides information about a configuration that Microsoft does not support. We provide this information for informational purposes only; Microsoft makes no guarantee that this configuration functions properly.

WARNING: Microsoft strongly recommends against renaming any system folder. Catastrophic system failure or an unstable computer could result if you rename system folders. If implemented, a backup should be made of the system before attempting this procedure.

To rename or move the "Documents and Settings" folder, use the appropriate method.
User-specific
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

NOTE: This method does not relocate key Windows components. Use this method if you require only user-specific data to be moved.

To specify a different folder for the "Documents and Settings" folder after you install Windows for a particular user, follow these steps:
Identify the user's profile path. There are two methods to identify the profile path. Either by user path settings or user SID. The user SID method is preferred.
User SID method
Use the GETSID tool from the Windows Server Resource Kit to obtain the SID. Use syntax similar to the following example:
GETSID \\SERVER1 UserName \\SERVER1 UserName

Once you obtain the SID, use Regedit.exe or Regedt32.exe to select the user's SID under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

User path setting
Log on to the computer as the user, and then type SET at a command prompt. Note the setting for USERPROFILE, and then close the command prompt window.
Log on as an administrator of the computer.
Use Registry Editor to add the USERPROFILE setting to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Click the registry key, and then click Find on the Edit menu.
In the Find box, type the value of the USERPROFILE setting, and then click Find Next.
Change the ProfileImagePath value to use the new path you want in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key.
Close Registry Editor, and then log on as the user. Type SET at the command prompt to verify the path has changed.
Entire Folder
NOTE: This method relocates key Windows components. Use this method only if you require the "Documents and Settings" folder to be moved or renamed and you cannot use the Unattend.txt file to change the name during installation.

To specify a different folder for the entire "Documents and Settings" folder, including key system components, follow these steps:
Log on to the computer as an administrator.
Create a new folder.
Open the current "Documents and Settings" folder.
On the Tools menu, click Folder Options, and then click the View tab.
Under Advanced settings click Show hidden files and folders, and then click to clear the Hide file extensions for known file types and Hide protected operating system files check boxes.
Click OK.
Click and drag to copy all the folders to the new folder, except for the currently logged on users folder.
In Control Panel, double-click System, and then click the User Profiles tab.
Copy the current user's profile to the new folder.
Click OK, close Control Panel, and then log off and log on to the computer as an administrator again.
In Registry Editor, click Find on the Edit menu.
Type documents and settings, and then click Find.
Replace the value data or rename the value or registry key to the new path for each and every registry key and value that contains the original path.NOTE: You must complete this change for every instance in the registry or your computer may not start. It is imperative that you update all registry keys and values with the new path.


Restart the computer.
You can now safely remove the original "Documents and Settings" folder.

原文出處 Cannot Move or Rename the Documents and Settings Folder




二步,移動目錄前要先建一個管理員帳戶,然後用這個臨時的管理員帳戶登入,這樣才能把其他的用戶帳戶轉移出來。
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次
舊 2004-01-08, 11:10 AM   #2 (permalink)
長老會員
榮譽勳章
UID - 1933
在線等級: 級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時級別:23 | 在線時長:642小時 | 升級還需:30小時
註冊日期: 2002-12-06
文章: 3269
精華: 0
現金: 4370 金幣
資產: 4530 金幣
預設

不錯的管理文章
感謝分享
__________________
請善用Google 當遇到問題時請先思考問題出在那裡???

支持版主-------嚴禁灌水.
ronbaby 目前離線  
送花文章: 901, 收花文章: 137 篇, 收花: 284 次
 


主題工具
顯示模式

發表規則
不可以發文
不可以回覆主題
不可以上傳附加檔案
不可以編輯您的文章

論壇啟用 BB 語法
論壇啟用 表情符號
論壇啟用 [IMG] 語法
論壇禁用 HTML 語法
Trackbacks are 禁用
Pingbacks are 禁用
Refbacks are 禁用


所有時間均為台北時間。現在的時間是 06:34 AM


Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2024, Jelsoft Enterprises Ltd.


SEO by vBSEO 3.6.1