Concerning the Owner rights: We were told to do this (and we were told why but I forgot the reason, have to ask again...^^) so take this as given I tried xcacls while I wrote the script because cacls can not set the owner, but xcacls did not do it correctly (in fact it did nothing) even though it gave an "succesfull" as answer to my command. So I used subinacl for that. For everything else cacls is enough for my purpose so it's one programm less on the server^^ (I know this is just a bad excuse^^). Now to the code you proposed: I'm not sure because I'm relatively new to this, but I thinke in your code is no check if the folder already exists, am I right? I want it in the script for the case there is a manually corrected right on the already existing folder so that it is not overwritten by the script. Aside from the your proposes: Any idea why my code isn't working in the first place?^^ I hope my english is understandable as I don't use it very often...