question

George-7902 avatar image
0 Votes"
George-7902 asked XiaoweiHe-MSFT commented

File Management Task - exclude file from monitoring

Hello all,
I've created a home folder in the file server for the users of my company so they can store safely their files. This folder has been mapped to their PCs via GPO. Nevertheless, we want to keep tracking what is stored in those folders and delete them after a period of time , let's say 2 months. At the same time they should store there a file extension which should remain in the folder all the time and not deleted. Tried different options but the outcome is always the same. When then file management task is running it deletes all the files including the one that shouldn't. Is there any option to exclude the file I want, from scanning and deletion?

windows-server-2016
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

XiaoweiHe-MSFT avatar image
0 Votes"
XiaoweiHe-MSFT answered XiaoweiHe-MSFT commented

Hi,

As far as I know, there seems no such settings to exclude the dedicated file. Maybe we need a customization script.

Thanks for your time!
Best Regards,
Anne


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I would like to check if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback.

Best Regards,
Anne

0 Votes 0 ·
George-7902 avatar image
0 Votes"
George-7902 answered XiaoweiHe-MSFT commented

Hello,

I was afraid that I am going to hear this answer :) . Since I am not familiar with scripting do you have maybe any source where I can have a look about it? Search to google redirects to different solution which are a little bit confusing, to be honest.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

You may try Powershell forum, maybe there are some enthusiastic guys who may help provide related powershell script. While I'd like to say, powershell forum is also mainly for powershell related issues, write the customized script is out of the supporters' scope, so just for a try.

https://docs.microsoft.com/en-us/answers/topics/windows-server-powershell.html

Best Regards,
Anne


0 Votes 0 ·