I used this link to apply a policy to delete a file type (jpg) in specific path. So I went to User Configuration
-> Preferences
-> Windows Settings
-> Files
and I created a new file properties with Delete
action.
In Delete File(s):
I input this file path: %USERPROFILE%\Downloads\*.jpg
.
That works great and this policy can delete every jpg files in that specific folder, However, The server raised the below warning frequently:
Event Id: 4098
Source: Group Policy Files
Description: The user *.jpg
preference item in the Default Domain Policy
Group Policy Object did not apply because it failed with error code 0x80070002
the system cannot find the file specified. This error was suppressed.
How do I prevent to raise this warning?
I use windows server 2012 and my clients are windows 7 sp1.
User contributions licensed under CC BY-SA 3.0