Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script does not work with UNC paths #2

Open
maspiter opened this issue Jun 15, 2021 · 0 comments
Open

Script does not work with UNC paths #2

maspiter opened this issue Jun 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@maspiter
Copy link

maspiter commented Jun 15, 2021

Nice script, thanks for sharing.

However I noticed it does not work wih UNC paths, so I made a quick and dirty fix:

Insert on line 72 before "Try to load the Outlook folders":

$PSTPathSplit = $strPSTPath.Split('\')
$PSTFile = $PSTPathSplit[$PSTPathSplit.length-1]

Change line 75 to:

$PST = $objnamespace.stores | ? { $_.FilePath -like "*$PSTFile" }

I'm not really a scripting genius, but this seemed to me the simplest way to fix it without breaking the local path functionality.

@lxndrblz lxndrblz added the enhancement New feature or request label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants