建立強制設定檔

來源:互聯網
上載者:User

標籤:強制設定檔   vdi   mandatory profile   

強制設定檔,即所有人不再建立單獨的設定檔,全部都使用統一的設定檔

此種情況使用者在對設定檔做了修改後(例如修改案頭壁紙、修改系統屬性)後,登出重新登陸會還原到標準的設定檔配置,其他關於強制設定檔的更多描述可以參見微軟官方文檔

強制使用者設定檔 -- 此檔案是用來為個人或整個使用者組指定特殊設定的漫遊設定檔。只有系統管理員才能更改強制使用者設定檔。

下面我寫一下關於微軟官方推薦的建立強制設定檔的方法。

主要步驟如下:

1. 使用標準使用者配置好系統,將案頭與系統屬性、應用程式全部設定好

2. 使用sysprep 初始化電腦,使用設定檔選擇copyprofile選項

3. 在上一步中會將配置好的設定檔替換到default profile裡面

4. 將預設設定檔匯出到存放強制設定檔的位置(本地或檔案伺服器均可),使用權限設定為Everyone可讀取執行將匯出的設定檔檔案夾改名為Mandatory.v2(也可以是其他的名字,保持.v2即可)

5. 在AD使用者屬性中,配置使用者的設定檔路徑為\\UNCPath\Mandatory或Drive:\Path\Mandatory (UNC路徑或本地路徑均可),在此配置時無需輸入.v2

6. 使用使用者登陸電腦,查看設定檔是否為強制

7. 配置完成。

配置如下:

1. 建立一個標準使用者,在電腦安裝好相應的應用程式,並啟動配置好

2. 開啟WSIM,開始建立sysprep設定檔

將Windows7的光碟片ISO檔案解壓,開啟WSIM,在Windows 映象欄右鍵,點擊匯入Windows 映像,選擇ISO檔案夾Sources檔案夾中的install.wim檔案,開啟後選擇使用的作業系統版本

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378649AntB.png" height="338" />

點擊“是”,開始建立編錄檔案

650) this.width=650;" title="clip_image001" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="clip_image001" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378657jHip.png" height="150" />

在Windows映像欄,找到Microsoft-Windows-Shell-Setup右鍵選擇傳送到specialize,在右側Copyfile欄選擇True

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378667KNNX.png" height="215" />

在應答檔案處,右鍵點擊儲存設定檔,儲存後的設定檔如附件所示(我製作了2個設定檔,分別為32位與64位)

在Windows7中,使用製作好設定檔的標準使用者登陸,並將設定檔放到Win7中

開始執行sysprep

Sysprep /oobe /reboot /generalize /unattend:c:\Win7x64.xml

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378675uJt1.png" height="274" />  





重啟完成後,使用管理員登陸到電腦,在電腦設定檔中找到預設設定檔,複製到一個位置,允許使用選擇everyone

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378682qtgL.png" height="303" />

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378691REPH.png" height="187" />

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378696f3sM.png" height="225" />

開啟檔案夾選項,將“隱藏受保護的作業系統檔案”的勾去掉,並選擇“顯示隱藏的檔案、檔案夾和磁碟機”

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378701MywD.png" height="320" />

將複製出的檔案夾中的ntuser.dat改為ntuser.man

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378722BhdW.png" height="274" />

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378740auXz.png" height="278" />

將修改好的設定檔複製到檔案伺服器中,重新命名為Mandatory.v2

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378756J5eS.png" height="201" />

修改使用者屬性,設定檔路徑修改為\\UNC\Mandagory

650) this.width=650;" title="image" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;" border="0" alt="image" src="http://img1.51cto.com/attachment/201408/18/2011872_1408378770sMqF.png" height="363" />

配置完成

強制設定檔為了獲得更好的效能,盡量選擇放在本地,例如c:\Users\Mandatory.v2

Note:此處建立的檔案夾一定要為.v2格式,但是在指定的時候要去掉.v2

本文出自 “孟紀超的技術部落格” 部落格,請務必保留此出處http://superdream.blog.51cto.com/2011872/1541818

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.