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.

[RESOLVED] Modify PST location in registry! Need Help!

Here's the dillema. We will be migrating a lot of users from physical desktops to virtual desktops. So naturally, we need to move any pst files from the local file system to the storage system which is the easy part.

Where I am currently struggling is figuring out how to modify the 001f6700 REG_BINARY value to reflect the new location of the pst file(s).

So, the function I am trying to use is shown below. When I run the script the SetBinaryValue method runs and generates no errors but the value still shows the local path and appears to be untouched by the script. Based off of some posts I have been reading I may not be formating the data within arrBinaryValueName properly before using the SetBinaryValue method.

Any help would be greatly appreciated. Apologies if an answer to this has already been posted but I have been searching all over the inet and only found a few treads talking about this specific issue.

Re: Modify PST location in registry! Need Help!

The issue was two-fold here. First, the SetBinaryValue method (line 227) was using strSplitter(1) for the subkey which included the users SID in the path. The second problem was even after being able to modify the binary value Outlook would still error when trying to open the pst. The last piece of the puzzel was to add three sets of 00 to the end of the ascii variable (line 221). Modified function is included below. Hopefully this will help others who need to migrate pst files.

Re: [RESOLVED] Modify PST location in registry! Need Help!

Even thought this post is old, maybe hortonbo will still get this. Do you have a copy of the complete script that you could share?

Thanks!

I hate to resurrect an old thread (again) but wanted to give Neimadpc (and anyone else who happens to stumble upon this) a somewhat complete script for this. I've worked from Hortonbo's script above to create this: http://community.spiceworks.com/scri...-path-registry