Hi there
Wonder if anyone can help, have had a look but didn't see this question in the forum i don't think.
I've been tasked with preparing our company's PST files ready for ingestion into a messaging system. The format of the file name is going to be interesting, but thats not my challenge for here. What We have is around 2000 user home drives, with PSTs located in various different locations within their sub folders, and with different names, depending on what they've called it.
I've managed to create a script which pulls out just the PST files into the existing folder structure, but what I now need is a way of renaming the files so that the file name is appended with the user's home drive folder at the start, and, in the case of more than one PST per user, the number is added to the end.
In this case, the PST information is in a folder called PSTTEST, and there is a sub directory for each user under there, with many sub directories under that, so i need to know how to set the rename to select the username for the folder name, and not the folder than the pst is located in, if that makes sense?
So, what I have at the moment is
c:\psttest\Aaaaaa\Outlook\archive.pst
c:\psttest\Aaaaaa\otherstuff\mail.pst
c:\psttest\bbbbbbb\mailbox.pst
etc etc
What i need is
c:\psttest\Aaaaaa\Outlook\aaaaaaa.pst.1
c:\psttest\Aaaaaa\otherstuff\aaaaaaa.pst.2
c:\psttest\bbbbbbb\bbbbbbb.pst.1
Does that make sense? Any ideas on how to achieve this?
Many thanks for any suggestions or ideas!