-
- Novice
- Posts: 6
- Liked: never
- Joined: May 21, 2019 12:21 pm
- Full Name: Juli Reid
- Contact:
Export-VexItem incorrect folder path error
I have a script to export items to pst using a csv input. It has been working correctly until last Friday. I am now getting an incorrect folder path error. Nothing has changed in the script or the folder.
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Export-VexItem incorrect folder path error
Without the correct error or the script, this is hard to debug what may cause this. If you could share some more info, we can try to resolve the issue.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Novice
- Posts: 6
- Liked: never
- Joined: May 21, 2019 12:21 pm
- Full Name: Juli Reid
- Contact:
Re: Export-VexItem incorrect folder path error
Exort-vexitem: Incorrect folder path
Here is the script piece. Please note that the script has not changed and was working correctly until Friday. This uses a csv input. I have double checked and the drive is available and not blocked or anything.
Here is the script piece. Please note that the script has not changed and was working correctly until Friday. This uses a csv input. I have double checked and the drive is available and not blocked or anything.
Code: Select all
foreach($i in $exports)
{
$sam = $i.sam
$name = $i.name
$archive = $i.isarchive
$extension = "-archive"
$archivename = "$sam + $extension"
$mailbox = Get-VEXMailbox -Database $database -Name $name
switch($archive)
{
yes{ Export-VEXItem -Mailbox $mailbox -To "X:\$archivename.pst" }
no{ Export-VEXItem -Mailbox $mailbox -To "X:\$sam.pst" }
}
}
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Export-VexItem incorrect folder path error
Seeing the disk is labeled X, could it be this is a network disk? Did anything happen to it (check the windows system log)? Did you try remounting if it is one and try to run the script again.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
Who is online
Users browsing this forum: No registered users and 10 guests