PRF problem with PST password

G

Groupex1

I have been using the PRF files for a couple of months now for my terminal
service users and just recently got calls about email not configuring.
The problem reported has to do with PST are password protected and when the
PRF files tries to add them it won't prompt user for password. It throws an
error that says "This information service has not been configured. Select an
existing file to confiure, or type the name of a new file to create" The
user then browses to the PST and only until then it prompts for password. If
the password is removed from the PST and profile erased so it configures
again it maps PST without a problem.
Any ideas would be helpful.

Thank you in advance


Here's the PRF I'm using
I can't seem to find how to use these variables that I can use for the
Personal folders. Does anybody know if this is the solution to my issue?
RememberPassword=
Password=

;Automatically generated PRF file from the Microsoft Office Customization
and Installation Wizard

; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************

[General]
BackupProfile=No
Custom=1
DefaultProfile=Yes
OverwriteProfile=Append
ModifyDefaultProfileIfPresent=true
DefaultStore=Service2

; **************************************************************
; Section 2 - Services in Profile
; **************************************************************

[Service List]
;ServiceX=Microsoft Outlook Client
ServiceEGS=Exchange Global Section
Service1=Microsoft Exchange Server
ServiceEGS=Exchange Global Section
Service2=Unicode Personal Folders

;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************

[Internet Account List]

;***************************************************************
; Section 4 - Default values for each service.
;***************************************************************

[ServiceEGS]
MailboxName=%UserName%
HomeServer=mail_server

[Service1]
OverwriteExistingService=YES
UniqueService=Yes
MailboxName=%UserName%
HomeServer=mail_server
AccountName=Microsoft Exchange Server

[Service2]
UniqueService=No
Name=Personal Folders
PathAndFilenameToPersonalFolders=\\File_server\Users\%USERNAME%\personal\%username%.pst
EncryptionType=0x50000000
 
D

Daines Lobo

Why dont you try entering the password in the prf. In the "Password-" field for the personal folder, just try entering the password of the pst. And then go to the client, delete the registry key that has the first run value. After this try importing the prf using the importprf switch from the run command.

Also one importing thing here, if pst is stored on UNC, then that is actually not supported even by Microsoft. So it is recommended that the pst is on the local path.
I hope this will resolve your issue.
reply to this post with the result....

A Womand Told Me
http://www.awomantoldme.com
 
D

Daines Lobo

Why dont you try entering the password in the prf. In the "Password-" field for the personal folder, just try entering the password of the pst. And then go to the client, delete the registry key that has the first run value. After this try importing the prf using the importprf switch from the run command.

Also one importing thing here, if pst is stored on UNC, then that is actually not supported even by Microsoft. So it is recommended that the pst is on the local path.
I hope this will resolve your issue.
reply to this post with the result....

A Womand Told Me
http://www.awomantoldme.com
 
D

Daines Lobo

Why dont you try entering the password in the prf. In the "Password-" field for the personal folder, just try entering the password of the pst. And then go to the client, delete the registry key that has the first run value. After this try importing the prf using the importprf switch from the run command.

Also one importing thing here, if pst is stored on UNC, then that is actually not supported even by Microsoft. So it is recommended that the pst is on the local path.
I hope this will resolve your issue.
reply to this post with the result....

A Womand Told Me
http://www.awomantoldme.com
 
D

Daines Lobo

Why dont you try entering the password in the prf. In the "Password-" field for the personal folder, just try entering the password of the pst. And then go to the client, delete the registry key that has the first run value. After this try importing the prf using the importprf switch from the run command.

Also one importing thing here, if pst is stored on UNC, then that is actually not supported even by Microsoft. So it is recommended that the pst is on the local path.
I hope this will resolve your issue.
reply to this post with the result....

A Womand Told Me
http://www.awomantoldme.com
 
G

Groupex1

I tried this and it does work but with 50 users having their PSTs with
passwords, it's just not a solution. I need the PRF to map their current
PSTs and prompt them for password.
 
S

stovetopp77

A solution that might work for you is to prompt the user for their password
using a scripting language and then build the PRF on-the-fly (ex. save it to
the user's profile), then launch the newly created, customized PRF.

Note: Code below assumes a default PRF file stored in \\mydomain\NETLOGON

Example Script:
'Start of script
title = "Configure Outlook with PRF"

'File manipulation constants
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8

debugmode = 1
LDAPDisplayName = 1
checkPrevious = 1

service = "LDAP"
server = "Server"
sourceFile = "\\mydomain\NETLOGON\somepath\" & service & ".prf"

Set objShell = WScript.CreateObject("WScript.Shell")

'Get user profile, sAMAccountName
Set objEnv = objShell.Environment("PROCESS")
userProfile = objEnv("UserProfile")
if debugmode = 1 then wscript.echo "userProfile:" & vbcrlf & userProfile

sAMAccountName = objEnv("UserName")
if debugmode = 1 then wscript.echo "sAMAccountName:" & vbcrlf & sAMAccountName

targetFile = userProfile & "\" & sAMAccountName & "_" & server & "_" &
service & ".prf"
if debugmode = 1 then wscript.echo "targetFile:" & vbcrlf & targetFile

'PRF file; check existence
Set objFSO = CreateObject("Scripting.FileSystemObject")
if checkPrevious = 1 then
prfExists = objFSO.FileExists(targetFile)

If prfExists Then
if debugmode = 1 then wscript.echo "PRF file previously created and
executed" & vbcrlf & targetFile
wscript.quit
End If
end if

'get user password
password = inputbox("Please enter your PST password:",title,"")

'Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile (sourceFile, ForReading)

fileData = objTextfile.readall
fileData = replace(fileData,"Password=***DEFAULT_PASSWORD***","DisplayName="
& password)

Set objTextFile = objFSO.OpenTextFile (targetFile, ForWriting, true)
objTextFile.Writeline fileData
objTextFile.close


'Execute configured PRF file
targetFile = chr(34) & targetFile & chr(34)
if debugmode = 1 then wscript.echo "Import targetFile:" & vbcrlf & targetFile
objShell.Run "outlook.exe /importprf " & targetFile

'Clear PRF file
fileData = "PRF executed. This is now a placeholder file."
Set objTextFile = objFSO.OpenTextFile (targetFile, ForWriting, true)
objTextFile.Writeline fileData
objTextFile.close

if debugmode = 1 then wscript.echo title & " - Complete!"
'End of Script
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top