Quantcast
Channel: Windows 8.1 Networking forum
Viewing all articles
Browse latest Browse all 3899

Workaround for HomeGroup reset permission issue

$
0
0

Hi at All,

as somebody, I faced the famous issue that reset HomeGroup permission to Read and eXecute on folders that reside in a different drive than C and that  are in the Windows 8 default libraries.

I explain you how I solved this issue. It's a workaround not a solution, I hope Microsoft is going to publish a patch for this nasty bug.

In few words, I use Scheduled Tasks to start every logon a script which set Homegroup permission to Full control on the folder of interests.

I publish how to apply this workaround.

1) List all folders that you have added in your Windows Library
     For example, I have added F:\Pictures F:\Video F:\Music F:\Documents in my Windows 8 Library.

2) Create a text file with notepad in C:\folderslist.txt and write the folder you listed in the previous step.
     Remember to put one folder per line, not more. For example, my folderslist.txt is :

     F:\Pictures
     F:\Video
     F:\Music
     F:\Documents

    Save the file and close it.

3) Create a text file, again with notepad, named setPerm.cmd  and save inC:\ .
     Please write these command in the file:

     FOR /F %%I IN (C:\folderslist.txt) DO icacls "%%I" /C /Q /T /grant HomeUsers:(OI)(CI)(F)

     Save and close it.
     When we run this script, it reads the file folderlist.txt , get the path of  folders we listed in the step 1 and set Read and Write permission for Homeusers.

4) Now test it. If all worked correctly you should be able to write from a computer in the Home Group.

5) We have to schedule this permission every logon. How do we do? With this command:

    SCHTASKS /Create /SC ONLOGON /TN setPermTask /TRc:\setPerm.cmd/DELAY 0002:00 /RU System

    You must run this command in an elevated command prompt. Open the Task Manager, click File, click New Task, write cmd , check the flag run as Administrator and click run.

    You should see a command prompt, copy the line above, paste in the black window and press enter.

    If you do that correctly, you won't see error messages.

    Ok, what did we do? We created a task that run every logon and start the script which set correctly homegroup permissions on our folders.

    The task doesn't start at once, the system wait 2 minutes before run the script.  Remember that the bug reset the folder permission after we logon, so we have to take a while before setup permission correctly. If we don't care about this, we will have broken permission.

   The last detail, our PC run the script as System user so we won't see the ugly black box, if you want to see remove /RU System from the command above.

6) Reboot your computer and check if the workaround works.

Please comment the workaround and tell me if it works for you. If you know other workarounds please tell me.

 Emiliano

 



Viewing all articles
Browse latest Browse all 3899

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>