Hi
I want to setup a schedule on the 20th of each month to archive all email from my journal account called 'archive' to a network location. Easy enough. I want all email in the mailbox archived. Again easy. However, I wan to creat a
powershell script to add the date to the name of the .pst. This is the script i have created:
------------------------------------------------------------
$date = ( get-date ).ToString('yyyyMMdd')
$pst = New-Item -type file "$date-JOURNAL.PST"
Export-Mailbox -Identity archive -PSTFolderPath
\\fileserver1\c$\Archive\$pst
-------------------------------------------------------------
What I'm not sure about is the -type being 'file'. Is there a type object called PST?
Paul