none
How to remove a folder if contents are empty

    Question

  • I have created a folder using Group Policy if a member is part of a specific AD Group. Also, if a member is added to this specific AD Group, it will create a shortcut to a folder location.

    If the member is taken out of this AD Group, I want the shortcut and the folder to be removed. I have the shortcut working correctly, however the folder is not being removed.

    I have the 'Delete this folder (if emptied)' checkbox checked, but still no deletion of the folder...

    Thursday, January 26, 2017 4:18 PM

All replies

  • Hi,

    I have tested for the case. I suggest you try to run gpresult /h gpreport.html to check if the policy has been applied successfully.

    It should look like:

    Best Regards,

    Jay


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, January 27, 2017 5:20 AM
    Moderator