Para poder exportar los inbox de un usuario desde Powershell en Exchange 2007 necesitamos cumplir los siguientes requisitos:

  • Ejecutar el comando desde un PC con procesador x86
  • Tener instalado Exchange management tools
  • Instalar Outlook 2003 o 2007
  • El usuario debe pertenecer al grupo  Exchange Organization Admin o Exchange Server Admin.

Si no cumplimos con los requisitos nos econtraremos con errores como el siguiente.

Error exportando a PST

Una vez cumplidos los requisitos abrimos una consola de exchange management como la de la foto anterior y tecleamos el siguiente comando:

Export-Mailbox –Identity [ususario] -PSTFolderPath [ruta absoluta destino]

En el caso que necesitemos exportar el mailbox de más de un usuario desde una lista, podremos hacerlo con el siguiente script:

#created by Melin360
#store in $path the path of the pst files
$path = "f:\archives"

#store in $users the path of the users file
$users = get-content "Path of the list of users"

#store in $name each name on the list of $users
foreach ($name in $users){
# Export command using $name 
# Export-Mailbox –Identity <mailboxUser> -PSTFolderPath <pathToSavePST>

Export-Mailbox –Identity $name -PSTFolderPath $path

}

Leave a Reply

error: ooops!