Solved

Roaming Notes Profiles - Skipping Notes Setup

Posted on 2008-06-17
3
1,541 Views
Last Modified: 2013-12-18
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.
0
Comment
Question by:suns0ft
  • 2
3 Comments
 
LVL 63

Assisted Solution

by:SysExpert
SysExpert earned 20 total points
ID: 21812997
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
 

Author Comment

by:suns0ft
ID: 21817975
Hrm is there anyway I could generate a full notes.ini somehow? ie, not have to run the setup each time?
0
 

Accepted Solution

by:
suns0ft earned 0 total points
ID: 21827284
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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now