Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection Documents

Status
Not open for further replies.

flipperc

IS-IT--Management
Jun 19, 2002
44
US
Ok, here goes...
I have 50 laptops in the field that never come to the office & they were set up with an incorrect setting in the location document. Is there a way to change them all remotely using Lotus?
They connect thru a software VPN, set to the "Office(Network)" location.


your help is greatly appreciated

PhillipC
 
Send the users an email with a button that they can press to make the changes. Here is a sample

Sub Click(Source As Button)
Messagebox "A new connection document to Server XXXX will now be added to your Personal Address Book"
Dim ws As New notesuiworkspace
Dim session As New notessession
Dim destdb As notesdatabase
Dim newdoc As notesdocument
Dim uidoc As notesuidocument
Set destdb = New notesdatabase("","names.nsf")
Set newdoc = destdb.createdocument
newdoc.Type="Connection"
newdoc.ConnectionLocation="*"
newdoc.Form="local"
newdoc.LanPortName="TCPIP"
newdoc.PortName="TCPIP"
newdoc.ConnectionRecordFirst="1"
newdoc.DestinationDomain="*"
newdoc.DocumentAccess="[NetModifier]"
newdoc.Enabled="1"
newdoc.Destination="CN=xxxx/OU=yyyyy/O=zzzz"
newdoc.ConnectionType="0"
newdoc.OptionalNetworkAddress="1.1.1.1"
newdoc.PhoneNumber="1.1.1.1"
newdoc.Source=Evaluate("@V3UserName")
newdoc.Owner=session.UserName
newdoc.~$PaperColor =52
Call newdoc.save (True,True)
Messagebox "Successfully completed"
End Sub
 
Thanks brobdignag, I appreciate your help.
I am very new to LotusScript tho- I understand some of it but I'm not sure how to customize your code to make the edited location that my users need?

 
What I need to do is change the "Internet" location.
The only entries I am interested in are -->

Mail addressing: Local and Server
and
Send outgoing mail: through Domino Server

Can you (or anyone) help?

Thanks a lot!

PhillipC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top