Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
You can use Group Policy to hide the "My Documents" folder, Documents shortcut, and Windows folder by configuring the "Hide these specified drives in My Computer" and "Prevent access to drives from My Computer" policies in the Group Policy Editor.
To do this, follow these steps:
Open the Group Policy Editor by typing "gpedit.msc" in the Run dialog box (press Windows key + R to open the Run dialog box).
In the Group Policy Editor, navigate to the following location: "User Configuration" -> "Administrative Templates" -> "Windows Components" -> "File Explorer".
Double-click on the "Hide these specified drives in My Computer" policy.
In the policy properties window, select the "Enabled" option, and then check the box next to "Restrict A, B, C, and D drives only". Click "OK" to save the changes.
Next, double-click on the "Prevent access to drives from My Computer" policy.
In the policy properties window, select the "Enabled" option, and then check the boxes next to "Restrict C drive only" and "Hide these specified drives in My Computer". Click "OK" to save the changes.
To hide the Documents shortcut, navigate to the following location in the Group Policy Editor: "User Configuration" -> "Administrative Templates" -> "Start Menu and Taskbar".
Double-click on the "Remove Documents icon from Start Menu" policy.
In the policy properties window, select the "Enabled" option. Click "OK" to save the changes.
To hide the Windows folder, you can use the "Hide these specified folders on the server" policy.
Navigate to the following location in the Group Policy Editor: "User Configuration" -> "Policies" -> "Administrative Templates" -> "Windows Components" -> "File Explorer".
Double-click on the "Hide these specified folders on the server" policy.
In the policy properties window, select the "Enabled" option, and then add "Windows" to the list of folders to be hidden. Click "OK" to save the changes.
After making these changes, the "My Documents" folder, Documents shortcut, and Windows folder should be hidden from users. Note that these changes will only apply to the user accounts that are subject to the group policy settings.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.