Get-Acl

Author Message
spooter

  • Total Posts : 17
  • Scores: 0
  • Reward points : 0
  • Joined: 11/14/2007
  • Status: offline
Get-Acl Monday, December 17, 2007 2:49 AM (permalink)
0
Hi again all,
 
I have been using a script which uses the get-acl cmblet to find the file owner, however I have run into a problem now that i haev tried using the script on the server instead of on my PC.  I am finding that when users copy their documents to the shared folder the ownership seems to change from them the system administrators and even if they change the ownership back to them the script still only finds the owner as BUILTIN\Administrators.
 
Is there anyway around this?
 
Regards
 
#1
    SAPIENScripter

    • Total Posts : 283
    • Scores: 2
    • Reward points : 0
    • Joined: 11/1/2006
    • Location: SAPIEN Technologies
    • Status: offline
    RE: Get-Acl Tuesday, December 18, 2007 2:56 AM (permalink)
    0
    Just to verify, the users are not members of the local administrators group on the server are they?  Instead of copying, which shouldn't make a difference, if they CREATE a new file to the network share from their desktop is the owner any different?  Are the users local administrators on their desktops? I wonder if the server is detecting the BuiltIn\Administrator SID and re-using it.  Can you try this from a desktop where the user is not a local admin?
    Jeffery Hicks
    Windows PowerShell MVP
    SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

    Follow Me: http://www.twitter.com/JeffHicks
     
    #2
      SAPIENScripter

      • Total Posts : 283
      • Scores: 2
      • Reward points : 0
      • Joined: 11/1/2006
      • Location: SAPIEN Technologies
      • Status: offline
      RE: Get-Acl Tuesday, December 18, 2007 8:32 AM (permalink)
      0
      This problem has been nagging me all day. I'm sure it is some basic NTFS fact that I've forgotten.  It might make a difference how the file is copied to the server.  I found http://support.microsoft.com/kb/240268 which reminded me that xcopy has a /O switch to copy file and owner attributes. This leads me to believe that other ways of copying files do not preserve that information.
      Jeffery Hicks
      Windows PowerShell MVP
      SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

      Follow Me: http://www.twitter.com/JeffHicks
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9