Hi,
Adrian schrieb:
>> "md %homedrive%%homepath%\myfolder attrib +h %homedrive%%homepath%\myfolder"
> I added the script to a new Gp I created with just the above to see if I
> could create a hidden folder but it didnt work for some reason, no folder was
> created no matter how much I played with it.
open cmd
-> set
check the definitions for the variable homedrive and homepath.
sometimes the "\" has to be applied, sometimes not.
(for whatever reason even if homepath is "\"...)
If your script works manually it should work in the GPO aswell.
I tried:
md %homedrive%%homepath%myfolder
and
md %homedrive%%homepath%\myfolder
in both cases the folder is created.
attrib +h %homedrive%%homepath%myfolder
and
attrib +h %homedrive%%homepath%\myfolder
works aswell.
> The Home drive for eveyone H:\\MyServer\First.SecondName
Do you define it inside the user settings of dsa.msc?
> What im trying to do is create a hidden folder so that the users cant delete
> the favourites folder, so then I have an ADM file to redirect the favourites
> folder.
> Would this be a good procedure? or am I going about it ass ways..
I would train the people not to delete the folder ...
The problem is:
- your user needs to add favorites
- he has to edit and change favorites
- he deletes them aswell
- some of them create folders to organize their favorites
etc.
With a little more efford you can define the %userprofile%\Favorites
only "read" permissions in NTFS, but allow adding files and folder.
Could be done with a script and xcacls.exe/xcacls.vbs aswell but the
user is the owner of his profile, so he can get the permissions back ...
I never had a problem with users who are deleting the entire favorites
folder. Perhaps thats why I don´t see a good solution on this case.
Mark
--
Mark Heitbrink - MVP Windows Server
Homepage:
www.gruppenrichtlinien.de
extend GPO:
www.desktopstandard.com
PM: Vorname@Homepage, Versende-Adresse wird nicht abgerufen.