近期一直在看Domino相關的文章,加上公司也用的是Domino系統,然後加上公司的使用者資料量比較龐大,而且人員流動比較大,每日入職删除的人員比較多,這樣給管理者的工作添加了很大的負擔,那有什麼好的辦法能批量進行操作麼。答案是有,那就建立一個domino庫來實作,具體操作見下;
環境介紹:
我環境内放了兩台Domino server,分别為:
Domain-mail01.gawian.com
Daomin-mail02.gawain.com
而且在每個伺服器上建立了不同使用者來進行實驗,具體見下;
Lisi、lili建立在Domino-mail01.gawain.com上
Bob、bod建立在Domino-mail02.gawain.com上
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446039ezKa.jpg" target="_blank"></a>
接下來就開始了。首先是要安裝Notes的一個插件,Domino desiguer;
安裝完成後打開該插件----單擊檔案---應用程式&mdash;建立
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446039RHDC.jpg" target="_blank"></a>
伺服器選擇第一台----标題:delUser(delUser.nsf)然後确認
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446040Arao.jpg" target="_blank"></a>
然後會自動打開該資料庫,見下圖
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446040qEuO.jpg" target="_blank"></a>
標明該資料庫後---建立表單
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446040d2tm.jpg" target="_blank"></a>
為該表單設定一個名稱:F1,然後打擊确認
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446041nY75.jpg" target="_blank"></a>
單擊該表單後&mdash;右擊&mdash;建立操作
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446041HXUB.jpg" target="_blank"></a>
為該操作建立一個名稱:del names person,然後單擊關閉
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446041ZBq6.jpg" target="_blank"></a>
然後自動打開該操作;選擇操作類型:lotusscript
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446042vyml.jpg" target="_blank"></a>
然後在操作中填寫執行代碼:
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446059umM6.jpg" target="_blank"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446059E41s.jpg" target="_blank"></a>
代碼内容:
将代碼複制進去後,單擊儲存
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_136444605976de.jpg" target="_blank"></a>
然後在建立域
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446060U116.jpg" target="_blank"></a>
為該域建立一個名稱:ff,勾選允許多值;樣式選擇&mdash;自身的os樣式
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_13644460639zm4.jpg" target="_blank"></a>
然後選擇多值選項:勾選逗号、分好、換行
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446064vHUw.jpg" target="_blank"></a>
單擊儲存
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446067fVcI.jpg" target="_blank"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446067fymz.jpg" target="_blank"></a>
F1為建立的表單
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446068uwu6.jpg" target="_blank"></a>
然後單擊&ldquo;幀結構集,然後單擊建立:幀結構集
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446071BClV.jpg" target="_blank"></a>
選擇第一個,幀結構數為2,單擊确認
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446071XfwP.jpg" target="_blank"></a>
然後右擊幀結構屬性
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446072UoTS.jpg" target="_blank"></a>
為該幀結構選擇表單:為之前建立的名稱為F1的表單
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446072DIWi.jpg" target="_blank"></a>
提示輸入幀結構集的名稱:mm
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446076octX.jpg" target="_blank"></a>
然後右擊資料庫---應用程式---屬性
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446076waQ7.jpg" target="_blank"></a>
選擇幀結構集:mm
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446077uFva.jpg" target="_blank"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_13644460774pgO.jpg" target="_blank"></a>
儲存後會在相應的目錄生成一delUser.nsf資料庫,然後将該資料庫拷貝到伺服器上,通過names.nsf資料庫打開或者輕按兩下打開即可;
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446077oTD8.jpg" target="_blank"></a>
然後提示輸入要輸入的使用者名
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446078pY2T.jpg" target="_blank"></a>
我們目錄下有4個使用者,我們都需要将其删除
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446078Dbzr.jpg" target="_blank"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446078s3eL.jpg" target="_blank"></a>
輸入後單擊删除name裡的個人文檔和郵箱
提示說使用者的資料庫已經被删除
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446078YwQy.jpg" target="_blank"></a>
接着提示使用者的個人文檔已被删除
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446121IOZ6.jpg" target="_blank"></a>
所指定的使用者個人文檔及資料庫删除完成後提示删除完成
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_13644461214sKw.jpg" target="_blank"></a>
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_136444612127jv.jpg" target="_blank"></a>
檢視mail檔案夾下的資料庫是否存在;已經删除了指定人的資料庫
<a href="http://gaowenlong.blog.51cto.com/attachment/201303/28/451336_1364446122u9HY.jpg" target="_blank"></a>
該實驗已完成,謝謝
本文轉自 高文龍 51CTO部落格,原文連結:http://blog.51cto.com/gaowenlong/1165269,如需轉載請自行聯系原作者