[Script of Apr. 24] Script to fix issues described in KB947222 (PowerShell)

Script Download:  

The script is available for download in Microsoft Script Browser for Windows PowerShell ISE.You need to install the Script Browser application first, and search for the script sample title.

This Windows PowerShell script will modify the file permission.

When user redirect the Documents folders to network share, the folders name changes back to My Documents as shown in the following figure. This issue can be fixed by denying Read permission to the administrator for the Desktop.ini files on the server. But the customers need to perform steps one by one. It would be great if we have a script to automate this task.

image image
 image

You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery