Maintain control of your Microsoft Office 365 email data
Post Reply
JuliReid
Novice
Posts: 6
Liked: never
Joined: May 21, 2019 12:21 pm
Full Name: Juli Reid
Contact:

Export-VexItem incorrect folder path error

Post by JuliReid » Jul 01, 2019 1:31 pm

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.

nielsengelen
Veeam Software
Posts: 2609
Liked: 537 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Export-VexItem incorrect folder path error

Post by nielsengelen » Jul 01, 2019 2:03 pm

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.
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be

JuliReid
Novice
Posts: 6
Liked: never
Joined: May 21, 2019 12:21 pm
Full Name: Juli Reid
Contact:

Re: Export-VexItem incorrect folder path error

Post by JuliReid » Jul 01, 2019 2:18 pm

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.

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" }

}

}




nielsengelen
Veeam Software
Posts: 2609
Liked: 537 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Export-VexItem incorrect folder path error

Post by nielsengelen » Jul 01, 2019 2:41 pm 1 person likes this post

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.
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests