Creating dynamic PRF files for outlook 2003 users

  • Thread starter Thread starter A.B.
  • Start date Start date
A

A.B.

I need to create a login script for Outlook 2003 users. Users are roaming
and need the same outlook profile on different computers.
My problem is that every user has more then 1 mailbox - His personal
mailbox, plus additional mailboxes which he's in charge of according to his
job functions in the organization.
The permission for the additional mailboxes is set through AD security
groups, and needs to be mapped to the users Outlook profile.
I can basically add these mailboxes to the PRF file that can be loaded with
outlook, but I need to make the file dynamic and changeable on every logon
to a computer. during the logon process, I need to check to which AD group
does the users belong, and map the correspondent mailboxes to his account.

Up until Outlook 2002 I could have used modprof.exe from the office RK, but
it's now unsupported in Outlook 2003.

Any ideas?
 
A.B. said:
I need to create a login script for Outlook 2003 users. Users are roaming
and need the same outlook profile on different computers.
My problem is that every user has more then 1 mailbox - His personal
mailbox, plus additional mailboxes which he's in charge of according to his
job functions in the organization.
The permission for the additional mailboxes is set through AD security
groups, and needs to be mapped to the users Outlook profile.
I can basically add these mailboxes to the PRF file that can be loaded with
outlook, but I need to make the file dynamic and changeable on every logon
to a computer. during the logon process, I need to check to which AD group
does the users belong, and map the correspondent mailboxes to his account.

Up until Outlook 2002 I could have used modprof.exe from the office RK, but
it's now unsupported in Outlook 2003.

Any ideas?

Where I work I do not exactly do this type of romaming but we do map
different groups to different public and private folders. This is
based off of the users group membership. Below is the login script
that we use to check which group a user belongs to and then proceed
with an if then statment for membership in the group. I hope this
helps...

Dim FSO
Dim strUserName ' Current user
Dim strUserDomain ' Current User's domain name
Dim ObjGroupDict ' Dictionary of groups to which the user belongs
Dim strUser
Dim wshShell

Set WSHNetwork = WScript.CreateObject("WScript.Network")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set wshShell = CreateObject("WScript.Shell")

strUser = wshShell.ExpandEnvironmentStrings("%USERNAME%")



'
' Wait until the user is really logged in...
'
strUserName = ""
While strUserName = ""
WScript.Sleep 100 ' 1/10 th of a second
strUserName = WSHNetwork.UserName
Wend
strUserDomain = WSHNetwork.UserDomain

' Read the user's account "Member Of" tab info across the network
' once into a dictionary object.

'Below where there is "GROUP" is where you put the group name in

Set ObjGroupDict = CreateMemberOfObject(strUserDomain, strUserName)
If MemberOf(ObjGroupDict, "GROUP") Then

'Set the Option for the group here

Else
'You can have a else option in here

End If
 
Back
Top