PRF Automated via Loginscript ??

Hello,

I was trying to follow instructions on how to auto-configure Outlook2003.
What i would like to do is if a user needs to moves desks when i'm not around, that their
email automatically gets setup.

I've created a PRF with CIW.
I've tested the PRF on a freshing installed computer with outlook 2003
By going to command prompt
using the chang dir option all the way to C:\program files\microsoft office\office11 and
then type outlook.exe /importprf "\\MYServer\OUTLOOKProfileAutoSetup\CRTOutLook.PRF
outllook sets it self up fine.

What I'm hoping to accomplish is fully making this automated via loginscript or just doing something on the local computer that will setup any new user to the computer being logged into. So when the double click Outllook, it's already setup.

I've tried already removing the First Run reg entries,  and adding the ImportPRF (which i think i'm not doing right)

Can anyone that knows how to accomplish this automation, please let me know.
Helder_HipolitoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ingeticCommented:
why don't you have preconfigure outlook installation with CIW ?


you can on login script use something like this o the login script

if not exist c:\%userneme%.outlook.log goto install-outlook

goto end

:install-outlook
C:\program files\microsoft office\office11\outlook.exe /importprf "\\MYServer\OUTLOOKProfileAutoSetup\CRTOutLook.PRF
echo %date% %time% > c:\%userneme%.outlook.log


:end



0
Helder_HipolitoAuthor Commented:
Hmmm.. I'm probably doing something wrong but that script you gave is not working for me?

Is there anything else i can try?
0
SembeeCommented:
How do you run your login scripts?
The old fashioned way with a script entry in each user account (which I still do on some sites), or via group policy?

It certainly will go out via a login script because I have done it.

Simon.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Helder_HipolitoAuthor Commented:
What we have are old fashioned logon scripts, which everyone in this location uses. Example Logon.bat

If there's a way to also have the script to only run when configuration is needed, (Insted of each time a user logs in having to have outlook launch) that would be nice. But thats probably pushing it.


Thanks for any info you can provide.
0
SembeeCommented:
Getting the file to run only when required is quite simple. Get the script to write a file to the machine when it is finished and then detect that file in the script. I will usually put the file in %userprofile% - that way the user can get at the file and delete it if required under direction of the help desk. Log off and everything runs again.

Drop the prf file in to the netlogon share with the login script - that should allow it to run correctly, without having to worry about connecting to anything else.

There is a way to set the PRF location via a registry change. That might be better for you and basically what happens if you deploy Outlook with the custom installation wizard. Run the registry change in the login script instead.

I will need to research that further though.

Simon.
0
Helder_HipolitoAuthor Commented:
Does anyone have a sample script they could post for me to try . I tried creating one before but no luck.



Thanks to anyone that can help.
0
Helder_HipolitoAuthor Commented:
Also guys... Just looking at some other settings.

i was looking through my registry  and i dont see ImportPRF,
Do i create a new key, string value etc...I saw this (pasted below) and i was going to try it to see if that could help me out.

From white paper

In the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup
subkey, set the value of ImportPRF to a string value that specifies the name
and path of the PRF file. For example, set ImportPRF to
\\server1\share\outlook.prf.
0
SembeeCommented:
You will have to create the string.
The values I am currently trying to work with are

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup
Name: First-Run
Value: 00,00,00,00,00,00,00,00
Type: BINARY

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup
Name: ImportPrf
Value: \\servername\share\custom.PRF
Type: String Value

However what I am also trying to detect is that a profile already exists.
I know what key to look for, just not how to read it.
"HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
Name: Default Profile
Value <whatever>
Type: String Value

I am a long way from a complete script though.

Simon.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Helder_HipolitoAuthor Commented:
Hmmm...

I'm using a freshing imaged computer.

I logged on as the local administrator on the computer went to Regedit.

Then i went to HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\ (setup was not there)
Under HKEY_LOCALMACHINE\Software\Microsoft\Office\11.0\Outlook\Setup (it's there)

So i double clicked OUTLOOK and cancel the setup and the HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup is now there. (But next time i launch outlook prompt the safe mode option)

First-Run key is not there (I know i can just delete that value anyways)

I add
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup
Name: ImportPrf
Value: \\MyServer\shared\OUTLOOKProfileAutoSetup\custom.PRF
Type: String Value

And it still does not run? Am i missing something.
0
Helder_HipolitoAuthor Commented:
Okay... I added the entries in manually and exported the Reg... Now when i log into machine with a new user and double click the reg file it will work perfectly.

So i know i can add it into a login script now, but is there a way that I can avoid loading it in via logon script. And putting into the registry so it keeps it for all users?

My Scenario not having it in the login script
Currently i have a user named "Fake User" i add in the reg entries manually. Setups up mailbox perfectly.
Then when i log in as "Fake User2" I have to add the entries once again , this happens with every additional user.

I just want to add it in once on the local machine. Is that even possible?

Also Sembee  I'm going to look for info about finding profiles.


0
Helder_HipolitoAuthor Commented:
Hey Sembee,


I found what to do with get it to detect if the profile already exits and you dont override it. In your PRF open it in NotePad
Change OverwriteProfile to No (this wont affect any existing profiles) And currently have everything up and running via logon script.

[General]
Custom=1
ProfileName=MyProfile
DefaultProfile=Yes
OverwriteProfile=No
ModifyDefaultProfileIfPresent=FALSE

Thanks For your Help.
0
SembeeCommented:
The presence or not of some of those keys indicates whether Outlook has already been run, or is in the first run state. That seems to play a part in whether the prf file is used.
Looking at a machine with an Outlook configured, I think the first run key I have outlined above is also the equivalent of no key. Therefore if you need to ensure that it has been reset setting the binary code to all zeros neutralises it.

You might also want to look at mapigen here: http://www.xirvsoftware.com/corporate.html
That will generate the profiles for you as well.

Simon.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.