Jump to content

Creating Exchange Account in Outlook with VBS Login Script


Recommended Posts

Posted

When we connect a workstation to a server we open Outlook 2003 and add the exchange account for that user. The problem is that sometimes that person may work on another machine an when they open Outlook they are propted to create an account. What we would like to do is to add the creatin of the account during the login VBS script (or some other method!)

Currently the login VBS script is as follows:

' VBScript.
ON ERROR RESUME NEXT
Dim oNet, sUser
Set oNet = CreateObject("Wscript.Network")
sUser =oNet.UserName

oNet.MapNetworkDrive "X:", "\\server\shared"


'Printer.vbs - Printer Logon Script
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\server\Kyocera"

Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\server\Epson2100"

Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\server\HP1220c"

Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\Server\HP1220C"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter

' Here is where we set the default printer to strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter


Set WshNetwork = WScript.CreateObject("WScript.Network")


'WScript.Echo "Computer Name = " & WshNetwork.ComputerName & Chr(13) & "User Name = " & WshNetwork.UserName

WScript.Echo "Welcome to The Windows 2003 Domain." & Chr(13) & "You are Logged on as " & WshNetwork.UserName & "." & Chr(13)

& "Network Installed and Supported by XXX - 0870 111111"

Hope someone can provide a solution!

Thanks!


Posted

If you download the Resource kit for 2003 there will be a program available to create a PST file. This needs to be integrated with your installation so when the user logs on it will automatically input the server name etc.

Ive not done this with 2003 but have done it with 2000. You'll probably need to read the help file for a better picture of what you need to do when you download the Resource kit.

Posted

Wouldn't a better solution be to have roaming profiles? I haven't set this up in a long time but I think it should be easy enough to find this. It is one of few advantages of having a windows "Domain" when I have some time I'm thinking of setting some users with roaming profiles.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...