Roaming Notes Profiles - Skipping Notes Setup

Hi all, hope you can help me with this!

SHORT VERSION: Skip the notes setup stage when logging in to a new PC using roaming profiles in lotus notes, check the steps taken so far part in the long version for where I'm at with this.

--------------------------LONGER VERSION BELOW--------------------------


GOAL: Users are able to log onto any machine on site multiple times and have it load into lotus notes.

CURRENT SETUP: Single user installs of notes on all machine, user ID's, notes.ini nsf files etc are all stored on a users private networked X. The notes shortcuts on the desktops point to this notes.ini. This allows users to log onto any machine and have notes load up exactly the same as it was before. The only problem is they cannot log in more then once, something that a number of them will have to do in the very near future.

The solution? Roaming profiles! I mean ones in notes, not windows. Windows roaming profiles are not an option for us, for a few different reasons. Anyway.

STEPS TAKEN SO FAR: Basically I have notes installed for multiple users on the test PC's, and have upgraded some users. The roaming part works fine, log in, run through the setup, change the home page and you're done. What I need to do is bypass the setup stage somehow. What I did was to create a batch file as follows;

set notespath="%userprofile%\Local Settings\Application Data\Lotus\Notes\Data\
set inipath="\\server\Roaming Data\notes.ini"
if not exist %notespath%" mkdir %notespath%"
if not exist %notespath%\notes.ini" copy %inipath% %notespath%"

This takes a look to see if the application data directory for notes is in the users local settings (ie, has this user logged onto notes on this machine before?). If not, it copies a notes.ini from a server into that spot for them which has the following contained:

[Notes]
KitType=1
InstallType=6
InstallMode=1
KeyFilename=U:\lotus\user.id
Location=Online
MailServer=CN=DOMINOSERVER/O=DOMAIN

I then modyfied the windows login script to call the batch file. This is all working fine, the directory and file is being created and placed where it should be, when it should be. However it is not skipping the setup stage for new users, which is the desired outcome.

The questions asked by the setup are Name/Server,  ID file location and Location. I need to be able to have these questions answered automatically somehow. If anyone knows what I'm missing in my own method or knows another way of doing this any help would be most appreciated.
suns0ftAsked:
Who is Participating?
 
suns0ftConnect With a Mentor Author Commented:
I have solved this problem. I found the following technote; http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg21112835

Basically what is contained there is info on how to use a config file (just a text file using the variables on that link) to set some variables for you within notes.

So I added to my login script the attacted code, which creates the config file and tells notes.ini to use it, for more details check the commenting.

There are probably better ways of doing this, but it works for me so for now thats how it shall be done ;).
@REM Script to create local notes files for roaming users
 
@echo off
echo Checking for notes.ini and copying if needed..
 
@REM Set paths for the files
set notespath=%userprofile%\Local Settings\Application Data\Lotus\Notes\Data\
set inipath="\\server\software\Roaming Data"
 
@REM No notes.ini, create one
if not exist "%notespath%" mkdir "%notespath%" 
if not exist "%notespath%notes.ini" copy %inipath%\notes.ini "%notespath%"
 
@REM If notes.ini has the string 'Ports=' in it, user has already been set up and we can end here.
find /I "Ports=" "%notespath%notes.ini" > nul
if ERRORLEVEL 1 GOTO firstrun
goto end
 
@REM If the user has not logged on before this will run and create a text file with the config data
echo Username=%username%/DOMAIN > "%notespath%notesconfig.txt"
echo Keyfilename=U:\lotus\user.id >> "%notespath%notesconfig.txt"
echo Domino.Name=DOMINOSERVER/DOMAIN >> "%notespath%notesconfig.txt"
echo Domino.Server=1 >> "%notespath%notesconfig.txt"
echo IM.Server=SAMETIME.domain.com >> "%notespath%notesconfig.txt"
echo IM.ConnectWhen=0 >> "%notespath%notesconfig.txt"
echo Replication.Schedule=1 >> "%notespath%notesconfig.txt"
 
@REM Reference that config file at the end of the notes.ini. Also as for some reason there is no location variable availible in the config file, add that directly.
echo ConfigFile=%notespath%notesconfig.txt >> "%notespath%notes.ini"
echo Location=Online >> "%notespath%notes.ini"
 
:end
echo Done!

Open in new window

0
 
SysExpertConnect With a Mentor Commented:
You need to copy a full Notes.ini file ( one that has already been fully installed ) , instead of the short version you are using.
This will be , per person.

I hope this helps !
0
 
suns0ftAuthor Commented:
Hrm is there anyway I could generate a full notes.ini somehow? ie, not have to run the setup each time?
0
All Courses

From novice to tech pro — start learning today.