A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Registry Location of Data Files



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 1st 08, 03:03 PM posted to microsoft.public.outlook.general, microsoft.public.outlook
Oren[_2_]
external usenet poster
 
Posts: 5
Default Registry Location of Data Files

Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...

Thanks a lot,

Oren
Ads
  #2  
Old January 1st 08, 05:11 PM posted to microsoft.public.outlook.general,microsoft.public.outlook
Shay Levi
external usenet poster
 
Posts: 15
Default Registry Location of Data Files

Hi Oren,


The registry location of the files are under:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\ProfileName

But they are not readable and stored in Binary values.
This VBScript code can tell you the path to any personal storage file (PST,OST).
You should run it
when Outlook is open.



set outlook = createobject("outlook.application")
set ns = outlook.GetNamespace("MAPI")

For Each item In ns.stores
If item.FilePath "" Then MsgBox item.FilePath
Next



HTH


-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic



Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...
Thanks a lot,

Oren



  #3  
Old January 2nd 08, 02:45 AM posted to microsoft.public.outlook.general,microsoft.public.outlook
Diane Poremsky
external usenet poster
 
Posts: 2,402
Default Registry Location of Data Files

Storing pst on network drives is not supported and can lead to data loss.

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Need Help with Common Tasks? http://www.outlook-tips.net/beginner/
Outlook 2007: http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center: http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:



"Oren" wrote in message
...
Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...

Thanks a lot,

Oren


  #4  
Old January 2nd 08, 05:17 PM posted to microsoft.public.outlook.general, microsoft.public.outlook
Oren[_2_]
external usenet poster
 
Posts: 5
Default Registry Location of Data Files

that's very weird because as far as I can see it has worked this way
wonderfully for years... the data loss can occure if you dont backup
the network once in a while or if you have to have all data including
current day always up to date if you have a power surge or whatever -
both of which can lead to data loss anyhow on any system. :-\

Oren


On Jan 2, 4:45 am, "Diane Poremsky" wrote:
Storing pst on network drives is not supported and can lead to data loss.

--
Diane Poremsky [MVP - Outlook]
Author, Teach Yourself Outlook 2003 in 24 Hours
Need Help with Common Tasks?http://www.outlook-tips.net/beginner/
Outlook 2007:http://www.slipstick.com/outlook/ol2007/

Outlook Tips by email:


Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center:http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:


"Oren" wrote in message

...

Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...


Thanks a lot,


Oren

  #5  
Old January 2nd 08, 05:18 PM posted to microsoft.public.outlook.general, microsoft.public.outlook
Oren[_2_]
external usenet poster
 
Posts: 5
Default Registry Location of Data Files

Thanks a lot!

I'll run some tests with that (have some pretty old configurations out
there) but it seems like you've given me pretty much all I need to
start from.

Thanks again!

Oren


On Jan 1, 7:11 pm, Shay Levi wrote:
Hi Oren,

The registry location of the files are under:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\ProfileName

But they are not readable and stored in Binary values.
This VBScript code can tell you the path to any personal storage file (PST,OST).
You should run it
when Outlook is open.

set outlook = createobject("outlook.application")
set ns = outlook.GetNamespace("MAPI")

For Each item In ns.stores
If item.FilePath "" Then MsgBox item.FilePath
Next

HTH

-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic

Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...
Thanks a lot,


Oren

  #6  
Old January 2nd 08, 07:01 PM posted to microsoft.public.outlook.general,microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default Registry Location of Data Files

Oren wrote:

that's very weird because as far as I can see it has worked this way
wonderfully for years... the data loss can occure if you dont backup
the network once in a while or if you have to have all data including
current day always up to date if you have a power surge or whatever -
both of which can lead to data loss anyhow on any system. :-\


It's more than that. The I/O protocols used for networking differ from the
I/O protocols used when accessing a local file and the former are not
well-suited to the type of I/O required to operate upon a PST.
--
Brian Tillman [MVP-Outlook]

  #7  
Old January 2nd 08, 09:53 PM posted to microsoft.public.outlook.general,microsoft.public.outlook
Shay Levi
external usenet poster
 
Posts: 15
Default Registry Location of Data Files


You're welcome. I had a similar question on the microsoft.public.windows.powershell
NG. I tested the code I posted under
Outlook 2007, it might not work on outlook 2003. For 2003 try this:



Set outlook = WScript.CreateObject("Outlook.Application")
Set ns = outlook.GetNamespace("MAPI")

For Each store In ns.Folders
path = HextoAscii(store.storeid)
pos = InStr(path,":\")
If pos then WScript.Echo Mid (path,pos -1)
Next

Function HexToAscii(str)
Dim i, out

For i = 1 To Len(str) Step 2
char = Mid(str, i, 2)
If char "00" then out = out & Chr("&H" & char )
Next

HexToAscii = out
End Function




-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic



Thanks a lot!

I'll run some tests with that (have some pretty old configurations out
there) but it seems like you've given me pretty much all I need to
start from.

Thanks again!

Oren

On Jan 1, 7:11 pm, Shay Levi wrote:

Hi Oren,

The registry location of the files are under:
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles\ProfileName

But they are not readable and stored in Binary values.
This VBScript code can tell you the path to any personal storage file
(PST,OST).
You should run it
when Outlook is open.
set outlook = createobject("outlook.application")
set ns = outlook.GetNamespace("MAPI")
For Each item In ns.stores
If item.FilePath "" Then MsgBox item.FilePath
Next
HTH

-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic
Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of
the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data
files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be
a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...
Thanks a lot,
Oren



  #8  
Old January 3rd 08, 10:08 AM posted to microsoft.public.outlook.general, microsoft.public.outlook
Oren[_2_]
external usenet poster
 
Posts: 5
Default Registry Location of Data Files

ah - I'll look it up then...

I guess I have a lot of experimenting to do - afaik I have ppl running
outlook 2k on some machines - I've got to find a neat way of scripting
how to look up the version and then execute the correct code...
shouldn't be *too* tough, but still. Ah well - it'll have to wait
'till after the weekend anyhow.


On Jan 2, 11:53 pm, Shay Levi wrote:
You're welcome. I had a similar question on the microsoft.public.windows.powershell
NG. I tested the code I posted under
Outlook 2007, it might not work on outlook 2003. For 2003 try this:

Set outlook = WScript.CreateObject("Outlook.Application")
Set ns = outlook.GetNamespace("MAPI")

For Each store In ns.Folders
path = HextoAscii(store.storeid)
pos = InStr(path,":\")
If pos then WScript.Echo Mid (path,pos -1)
Next

Function HexToAscii(str)
Dim i, out

For i = 1 To Len(str) Step 2
char = Mid(str, i, 2)
If char "00" then out = out & Chr("&H" & char )
Next

HexToAscii = out
End Function

-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic

Thanks a lot!


I'll run some tests with that (have some pretty old configurations out
there) but it seems like you've given me pretty much all I need to
start from.


Thanks again!


Oren


On Jan 1, 7:11 pm, Shay Levi wrote:


Hi Oren,


The registry location of the files are under:
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles\ProfileName


But they are not readable and stored in Binary values.
This VBScript code can tell you the path to any personal storage file
(PST,OST).
You should run it
when Outlook is open.
set outlook = createobject("outlook.application")
set ns = outlook.GetNamespace("MAPI")
For Each item In ns.stores
If item.FilePath "" Then MsgBox item.FilePath
Next
HTH


-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic
Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of
the
computer status and saving it to a database on the network. I would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data
files
in outlook are saved. I would suspect that it involves the registry
somehow, which is not a problem, but what I have found seemed to be
a
bit too user personalized. I would appreciate any help in this, even
if it would mean that the script would have to jump from one key to
another in order to find the required information...
Thanks a lot,
Oren

  #9  
Old January 3rd 08, 10:14 AM posted to microsoft.public.outlook.general, microsoft.public.outlook
Oren[_2_]
external usenet poster
 
Posts: 5
Default Registry Location of Data Files

oh, I see... hmm - well, I still think its safer this way - when you
have hard disks as badly handled as I've seen here - though I *will*
take this up to my boss...
Most of the mail is saved on the exchange server anyhow and the access
to the PSTs is only for the personal folders... but I see the point.

Thanks for clearing this up for me. :-)

PS - excuse me, Diane, for not taking a deeper look into what you said
- it simply sounded like something I might read in some MS help page
and I dont trust most of them untill and if I understand and agree
with whats behind writing them.


On Jan 2, 9:01 pm, "Brian Tillman" wrote:
Oren wrote:
that's very weird because as far as I can see it has worked this way
wonderfully for years... the data loss can occure if you dont backup
the network once in a while or if you have to have all data including
current day always up to date if you have a power surge or whatever -
both of which can lead to data loss anyhow on any system. :-\


It's more than that. The I/O protocols used for networking differ from the
I/O protocols used when accessing a local file and the former are not
well-suited to the type of I/O required to operate upon a PST.
--
Brian Tillman [MVP-Outlook]


  #10  
Old January 3rd 08, 11:04 AM posted to microsoft.public.outlook.general,microsoft.public.outlook
Shay Levi
external usenet poster
 
Posts: 15
Default Registry Location of Data Files



Set outlook = WScript.CreateObject("Outlook.Application")
Set ns = outlook.GetNamespace("MAPI")
MsgBox outlook.version
(...)

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic



ah - I'll look it up then...

I guess I have a lot of experimenting to do - afaik I have ppl running
outlook 2k on some machines - I've got to find a neat way of scripting
how to look up the version and then execute the correct code...
shouldn't be *too* tough, but still. Ah well - it'll have to wait
'till after the weekend anyhow.

On Jan 2, 11:53 pm, Shay Levi wrote:

You're welcome. I had a similar question on the
microsoft.public.windows.powershell
NG. I tested the code I posted under
Outlook 2007, it might not work on outlook 2003. For 2003 try this:
Set outlook = WScript.CreateObject("Outlook.Application") Set ns =
outlook.GetNamespace("MAPI")

For Each store In ns.Folders
path = HextoAscii(store.storeid)
pos = InStr(path,":\")
If pos then WScript.Echo Mid (path,pos -1)
Next
Function HexToAscii(str)
Dim i, out
For i = 1 To Len(str) Step 2
char = Mid(str, i, 2)
If char "00" then out = out & Chr("&H" & char )
Next
HexToAscii = out
End Function
-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic
Thanks a lot!

I'll run some tests with that (have some pretty old configurations
out there) but it seems like you've given me pretty much all I need
to start from.

Thanks again!

Oren

On Jan 1, 7:11 pm, Shay Levi wrote:

Hi Oren,

The registry location of the files are under:
HKEY_CURRENT_USER\Software\Microsoft\Windows
NT\CurrentVersion\Windows Messaging Subsystem\Profiles\ProfileName
But they are not readable and stored in Binary values.
This VBScript code can tell you the path to any personal storage
file
(PST,OST).
You should run it
when Outlook is open.
set outlook = createobject("outlook.application")
set ns = outlook.GetNamespace("MAPI")
For Each item In ns.stores
If item.FilePath "" Then MsgBox item.FilePath
Next
HTH
-----
Shay Levi
$cript Fanatichttp://scriptolog.blogspot.com
Hebrew weblog:http://blogs.microsoft.co.il/blogs/scriptfanatic
Hello,
I help in managing a pretty large network. As we are sadly using
pretty old computers people tend to crash\change computers pretty
often. To prevent large data loss they save important mail either
on
the exchange server or in a personal folder the .pst file of which
usually should sit on their private network folder. I have a small
scripting applet running on each computer capturing a snapshot of
the
computer status and saving it to a database on the network. I
would
like it to also add a column for the location of the outlook data
files, so that I can see which users save their .pst files locally
instead of on the network.
In order to do that I need to know how the locations of the data
files
in outlook are saved. I would suspect that it involves the
registry
somehow, which is not a problem, but what I have found seemed to
be
a
bit too user personalized. I would appreciate any help in this,
even
if it would mean that the script would have to jump from one key
to
another in order to find the required information...
Thanks a lot,
Oren



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MaxFileSize Registry Value data TomScurlo Outlook - Installation 0 October 11th 07 02:18 PM
Location of data file for Outlook Contacts herbmmm Outlook - Using Contacts 1 September 21st 07 09:03 PM
how to find multiple pst location using registry ilavaa Outlook - Using Forms 1 December 29th 06 12:22 PM
Registry location for publishing number of months of free/busy markj Outlook - Calandaring 0 July 14th 06 06:50 PM
Moving Outlook to another PC, and moving data files to another location /mel/ Outlook - General Queries 3 June 24th 06 03:39 PM


All times are GMT +1. The time now is 04:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.