• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1142
  • Last Modified:

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.
0
Helder_Hipolito
Asked:
Helder_Hipolito
  • 7
  • 4
1 Solution
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
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

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now