I already have a BAT script to find PST files and rename their extension to .pstx. (This is so that USMT doesn't pick them up in a migration)
for /f "delims=" %%i in ('dir /s /b /a-d c:\*.pst') do (ren "%%i" *.pstx)
That works great.
But I need this script to ingore any PST files that already reside in the "Outlook Files" folder in Documents. (So that USMT does pick them up in a migration)
What command can I incorporate in this script to exclude any PST files in "Outlook Files" ?
Any help would be much appreciated. We are using this to migrate users to HVD and we are almost there!
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi,
I already have a BAT script to find PST files and rename their extension to .pstx. (This is so that USMT doesn't pick them up in a migration)
for /f "delims=" %%i in ('dir /s /b /a-d c:\*.pst') do (ren "%%i" *.pstx)
That works great.
But I need this script to ingore any PST files that already reside in the "Outlook Files" folder in Documents. (So that USMT does pick them up in a migration)
What command can I incorporate in this script to exclude any PST files in "Outlook Files" ?
Any help would be much appreciated. We are using this to migrate users to HVD and we are almost there!
thanks
Jan
Share this post
Link to post
Share on other sites