Solved

How to use a batch file to automatically configure LAN and email account

Posted on 2004-08-11
8
559 Views
Last Modified: 2010-04-14
Im trying to make it easier to set up computers on our network using a batch file login script.  I was wondering if anyone knows how to use a batch script to automatically, after logging in to the network, connect to the internet via a LAN connection and configue email settings for IE and Outlook?  Im running windows 2000.  If you could be as specific and clear as possible that would be great, im new in the batch scripting world.  Thanks.

Dave
0
Comment
Question by:dlev15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 25

Expert Comment

by:mikeleebrla
ID: 11774999
i dont know how to do it with a batch file,,, but i do this exact same thing by setting up  a profile...then copying this profile to the Default User profile,,, this works fine for me
0
 

Author Comment

by:dlev15
ID: 11775603
i really need to know how to do it in a batch file, if possible...thanks though
0
 
LVL 6

Expert Comment

by:tanelorn
ID: 11775825
hi,

the way that I do it is to export the following keys into a reg file. and import it into the new machine. these 2 keys contain a number of settings in each one.  

[HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\user@whatever.com]
[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\user@whatever.com]

you can put it into a batch file by calling regedit if that buys you anything.

I'm not sure if you are transitioning machines (ie one shot deal) for people or want  a roaming type of setup..  
if you are looking for a roaming type of solution, I would recommend a roaming profile.

Tanelorn
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:dlev15
ID: 11776008
Tanelorn,


Not exactly familiar with .reg files, so im kind of lost with your solution.
0
 
LVL 25

Expert Comment

by:mikeleebrla
ID: 11776032
reg files basically are text files,, renamed with the reg extension,,, when run, they edit keys in the registry... copy and past the text in a text file,, save it,, rename it w/ a reg extension
0
 

Author Comment

by:dlev15
ID: 11776087
OK...now how do i call the .reg file from a batch file?  Sorry i have so many questions about this, ive never really done it before.
0
 
LVL 6

Accepted Solution

by:
tanelorn earned 500 total points
ID: 11776170
hi,  

if you are familiar with the registry,  navigate (hilight) to the first key I've indicated,

then click on "Registry" menu item (top left)  then click on  "Export registry file"

the dialog will open asking where to put the file.

save it to the desktop, or where ever.  call it  ieacct.reg

then do the same for the second one.  call it   outlook.reg

your batch file will have syntax something like this

but,  you could just double click on the reg files and they will install


----snip----
your code....

call regedit -s \\server\share\folder\ieacct.reg
call regedit -s \\server\share\folder\outlook.reg

the rest of your code

---snip----

if you want to make only one file.  copy and paste the contents of one into the other  but only have one
"REGEDIT4"  at the top.

you'll see them if you open the reg file with your favorite text editor

Tanelorn
0
 

Author Comment

by:dlev15
ID: 11776346
Thanks man...how do i get you your points?
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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