Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

File migration

$
0
0

Hey all. I am looking to separate some files for a mail migration. We have several PST files per user that are grouped together in each user subfolder. We need to separate the PST files based on dates....the newer PST files are EJF files (Exported from Exchange) the others are SFJ files.

Ultimately I would like to have a script that will take all files older than X date. And move them to a folder that has a the same path in the new location, since all file names\folders are based on the e-mail address of the users.

Current:

\data\userfiles\username\username.pst, \data\userfiles\username\username.1.pst, \data\userfiles\username\username.2.pst

Proposed:

\data\userfiles\username\username.pst (File that will stay in the current location)

\data\userfiles-new\username\username.1.pst, \userfiles-new\username\username.2.pst (Older files that need to be moved)

The userfiles-new folder and subfolders do not exist yet, and will be created by the script...hopefully.

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles