可能与权限有关。需要服务器管理员的权限。
下面是帮助里的原文:
If the script runs on a workstation, this method retrieves the environment variable from the current user's notes.ini (or Notes Preferences) file. If the script runs on a server, this method retrieves the environment variable from the server's notes.ini file, subject to administrative restrictions. For more information, see "Restricting agents on servers" in Domino 5 Administration Help.