This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using a script to assign/create home folder - permissions end up as Full Control to user - Why?

I am using a powershell script to determine the server/shared folder location for a user's home drive.

As part of the onPostCreate it creates the folder and sets the AD attributes.

The permissions are set to 'Modify' by the script, but after creation the user gets Full Control.

What is making this happen?

Thx.

Parents
  • The following code seems to cause the problem...! So how do I get round it?

    #Homedirectory

    $DirObj.Put("homeDirectory",$strDFSFolderName)

    #Homedrive

    $DirObj.Put("homeDrive","H:")

    #ProfilePath

    $DirObj.Put("profilePath",$strProfilePath)

    #Update object

    $DirObj.SetInfo()

Reply
  • The following code seems to cause the problem...! So how do I get round it?

    #Homedirectory

    $DirObj.Put("homeDirectory",$strDFSFolderName)

    #Homedrive

    $DirObj.Put("homeDrive","H:")

    #ProfilePath

    $DirObj.Put("profilePath",$strProfilePath)

    #Update object

    $DirObj.SetInfo()

Children
No Data