Excluding a folder and its contents from an expiration task...


hi;

suppose have folder contains 50 other folders. there way exclude 1 folder inclusion of expiration task?

thanks


please vote helpful if post helps , remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.

hi r.alikhani,

thanks post.

based on understanding want create folder expiration task, want exclude 1 folder. if so, far know, ui configuration, there's no such settings.

but since file mangement task achieved powershell commands, might try operation powershell scripts. may need confirm in powershell forum.

https://technet.microsoft.com/en-us/library/jj900651%28v=wps.630%29.aspx?f=255&mspperror=-2147217396

https://blogs.technet.microsoft.com/filecab/2009/05/11/customizing-file-management-tasks/

and if want move files older day , exclude folder, try use robocopy.

for example:

robocopy /minage:n /xd dirsc

/minage: <n>      specifies minimum file age (exclude files newer n days or date).

/xd <directory> excludes directories match specified names , path

best regards,

mary dong


please remember mark replies answers if , unmark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  File Services and Storage



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file