Re: Remote folder permission for brand new user - XCACLS.VBS



I'm having the same problem. We have 8 DCs, creating user, then profile folder, trying to run xcacls cannot resolve the user, even when providing the SID. Within minutes it can resolve the user.

Any advice?

I'm at the point that I'm looking into xcacl.vbs itself to extract the part that resolves the user so that I can include the same code inside a loop within my script that loops until it resolves the user then it proceeds with xcacls. I hate/love scripting.

On Monday, March 19, 2007 9:08 AM Gert Conradie wrote:

Hi

We have a script that creates a brand new user in AD and then create a
physical profile path folder. We then set permissions on the new
folder with XCACLS.VBS from our script.

We are a national company that have different regions with own DC's
etc.

When the script run in our main office ie the profile paths is close &
on same DC, then all well.

When I run the script for a region with own DC, then fail. (The folder
are created but the user permissions is not set) When I do this for a
user that was created previously (20 minutes for example) then this
would work and the user permission would be fine.

Seems that the remote DC dont know about the user yet and therefor
fail and it would anly work after the standard "sink" period. Any
advice?

Thanks, Gert


Submitted via EggHeadCafe
ASP.NET - Zip Selected Files and Add Files in Memory with DotNetZip
http://www.eggheadcafe.com/tutorials/aspnet/fd2b3765-624b-47ea-a461-bf3ad6dcbf7b/aspnet--zip-selected-files-and-add-files-in-memory-with-dotnetzip.aspx
.



Relevant Pages

  • Re: Automating set up?
    ... > I would like to know that their folder is automatically created, ... > up the mapping in a logon script unless there is a better way. ... My Documents will be a SUBDIRECTORY of the Profile directory here. ... Herb Martin> ...
    (microsoft.public.win2000.active_directory)
  • RE: Simple Script??
    ... I had a typo in the path...Your script is AWESOME THANKS AGAIN!!!! ... Since you only needed to copy a file to every profile, ... full directory recursion in the routine. ... will copy a file called File.txt to the Start folder in every profile. ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Simple Script??
    ... Well, it is not the most elegant solution I have ever written, but the script ... Since you only needed to copy a file to every profile, ... full directory recursion in the routine. ... will copy a file called File.txt to the Start folder in every profile. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: XPsp2 and WMP10 and default profiles - a solution
    ... This script needs to be referenced in the SysPrep.inf file, ... >> default user profile. ... >> and Windows Media Player 10 installed, XP always creates a Windows Media ... >> it ignores the default user profile folder and uses the Administrator ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Set profile and homefolder path at logon?
    ... The profile folders are stored on server1. ... In each user's profile we have the profile path set to that server and their ... The same with the home folder - set to server1\username. ... What I was planning on doing was to set up a script which would copy those ...
    (microsoft.public.windows.server.scripting)