天天看点

Domino 下批量删除邮箱用户个人配置文档及数据库文件

近期一直在看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;

安装完成后打开该插件----单击文件---应用程序&amp;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>

单击该表单后&amp;mdash;右击&amp;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,勾选允许多值;样式选择&amp;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>

然后单击&amp;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,如需转载请自行联系原作者