PST migration script
hi guys,
i'm new powershell , looking script migrate multiple archived .pst files outlook single location after os installation.
this simple most, i've mentioned, new comer.
in addition, can dealing office 2007 through 2013 versions , multiple locations though on initial data capture, stored in single location.
what looking script 'input' multiple archived files outlook instead of having introduce them individually.
any feedback appreciated.
many thanks
jason
hi jason,
easy way: search c: , copy results target.
$target = "x:\psts\" $pstonc = get-childitem -path c:\ -recurse -include *.pst foreach ($p in $pstonc){
copy-item ($p.directoryname+"\"+$p.name) ($target+"\"+$p.name)
}
note: make sure outlook closed otherwise psts not copied. receive lot of permissiondenied errors readprotected system folders --> users can't save there anyhow.
cheers
dan
Windows Server > Windows PowerShell
Comments
Post a Comment