Home folders renamed to My Documents

When you redirect users home folders to network share the folders are show as My Documents folder.

This is a in


Do not grant the Read permission to the for the .ini files on the server. To do this, follow these steps:

Note If more than one .ini file exists, follow these steps for all the Desktop.ini files.

  1. Right-click the .ini file, click Properties, and then click the tab.
  2. In the or user names pane, click Administrators.
  3. Click to select the Deny check box for the Read permission.
  4. Click OK.

If you have 1000+ home folders this is not great thing to do Sad smile

Richard Willis created a nice that will do it for you Open-mouthed smile
You need only the groupName to the that you will give deny read permissions.
Save the in de where all the “My Documents” are and run the script.

The Script:

$folders = Get-ChildItem | where-object {$_.psiscontainer};
foreach ($ in $folders)
$desktopIni = Get-ChildItem $folder -Filter .ini -Force
if ($desktopIni -ne $null)
$Acl = Get-Acl $desktopIni.FullName
$Ar = New-Object system..accesscontrol.filesystemaccessrule `
Set-Acl $desktopIni.FullName $Acl


One thought on “Home folders renamed to My Documents”

Translate »
%d bloggers like this: