Maintain control of your Microsoft 365 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 »

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
Product Manager
Posts: 5619
Liked: 1177 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Export-VexItem incorrect folder path error

Post by nielsengelen »

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
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 »

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
Product Manager
Posts: 5619
Liked: 1177 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Export-VexItem incorrect folder path error

Post by nielsengelen » 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.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests