Hello Guys.
Any help would be appreciated.
I've been assigned a task to extract the creator owner of shared folders on a window server 2003 platform.
For days , i've been searching through the web cluelessly without any fruitful result.
I've located some scripts that enables me to only extract only in the below format.
I've managed to salvage this piece of script which lies somewhere around the net.
However this script could only extract
Folder Directory . System Rights . Control Type . IdentityReference . Inherited (T/F) . Inhertiance Flags . Propagation Flag.
With the below script.
##ACL Rights Execution PowerShell Script##
$OutFile ="C:\Users\All User\Desktop\logfile.csv"##indicates where to input your logfile## $Header ="Folder Path,IdentityReference,AccessControlType,AccessRights,IsInherited,InheritanceFlags,PropagationFlags"Del $OutFileAdd-Content-Value $Header -Path $OutFile $RootPath ="\\Servername\folder"##which directory/folder you would like to extract the acl permissions## $Folders = dir $RootPath -recurse |where{$_.psiscontainer -eq $true}foreach($Folder in $Folders){ $ACLs =get-acl $Folder.fullname |ForEach-Object{ $_.Access}Foreach($ACL in $ACLs){ $OutInfo = $Folder.Fullname+","+ $ACL.IdentityReference+","+ $ACL.AccessControlType+","+ $ACL.FileSystemRights+","+ $ACL.IsInherited+","+ $ACL.InheritanceFlags+","+ $ACL.PropagationFlagsAdd-Content-Value $OutInfo -Path $OutFile}}
I've tried to change some of the values but it would not allow me to extract the value of the creator owner.
*Due to my poor understanding to powershell scripting because i'm not a programmer*
To define creator owner specifically as in the user who originally create the folder. Not users who are assigned full rights .