Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Get-Acl

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,54388
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Get-Acl
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Get-Acl - 12/17/2007 1:49:10 AM   
  spooter

 

Posts: 15
Score: 0
Joined: 11/14/2007
Status: offline
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
 
 
Post #: 1
 
 RE: Get-Acl - 12/18/2007 1:56:06 AM   
  SAPIENScripter


Posts: 261
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
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

(in reply to spooter)
 
 
Post #: 2
 
 RE: Get-Acl - 12/18/2007 7:32:16 AM   
  SAPIENScripter


Posts: 261
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
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

(in reply to spooter)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Get-Acl Page: [1]
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts