<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx</link><description>Share this post: Hey, Scripting Guy! I am trying to get a handle around the security of a folder on my computer. I need to be able to figure out a way to determine who has access and what those access rights are. I guess I could use the Icacls utility</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3523001</link><pubDate>Fri, 28 Sep 2012 02:52:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3523001</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;@SISI - wow! great idea. Can you post your solution?&lt;/p&gt;
&lt;p&gt;Of course you realize that this is a four year old blog post. &amp;nbsp;I don&amp;#39;t really think it is relevant anymore. &amp;nbsp;You?&lt;/p&gt;
&lt;p&gt;The forum for this blog is here: &lt;a rel="nofollow" target="_new" href="http://social.technet.microsoft.com/Forums/en-US/ITCG/threads?filter=unread&amp;amp;sort=lastpostdesc"&gt;social.technet.microsoft.com/.../threads&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Start a question. &amp;nbsp;I am sure some people will remember those old issues from the last century, decade, millenium.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3523001" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3522999</link><pubDate>Fri, 28 Sep 2012 02:23:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3522999</guid><dc:creator>SiSi</dc:creator><description>&lt;p&gt;This is great! - now how would we exclude certain groups based on &amp;#39;contains this string&amp;#39; to filter out admin groups say that we dont care about, then go further to list the usernames of each group with what access they have listed next to each user?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3522999" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3437981</link><pubDate>Tue, 28 Jun 2011 18:36:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3437981</guid><dc:creator>Cjwdev</dc:creator><description>&lt;p&gt;The link in my last comment doesn&amp;#39;t seem to have pasted properly, here it is again: &lt;a rel="nofollow" target="_new" href="http://cjwdev.wordpress.com/2011/06/28/permissions-not-included-in-net-accessrule-filesystemrights-enum/"&gt;cjwdev.wordpress.com/.../permissions-not-included-in-net-accessrule-filesystemrights-enum&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hopefully that worked...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3437981" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3437980</link><pubDate>Tue, 28 Jun 2011 18:34:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3437980</guid><dc:creator>Cjwdev</dc:creator><description>&lt;p&gt;The numbers that you see instead of permission descriptions are from files/folders that have had &amp;quot;generic&amp;quot; permissions applied to them. For some reason the .NET team didn&amp;#39;t think to handle this scenario when getting the FileSystemRights property of an AccessRule (which seems odd as a lot of the default folders in a fresh Windows build have these generic permissions applied so it is not as if it is uncommon). I&amp;#39;ve explained how you can work out what these permissions actually are in my blog post here: permissions-not-included-in-net-accessrule-filesystemrights-enum&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3437980" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3423779</link><pubDate>Sat, 23 Apr 2011 13:10:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3423779</guid><dc:creator>David Homer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes we are also seeing negative numbers this shows as &amp;quot;Special&amp;quot; in the UI -536805376&lt;/p&gt;
&lt;p&gt;Which when you open includes most permissions set to allow however obviously a bitwise AND doesn&amp;#39;t return that this as having any allowed permissions.&lt;/p&gt;
&lt;p&gt;Very strange, this occurs both using the .NET methods and also using WMI&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;p&gt;CENTREL Solutions&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://centrel-solutions.com/xiaconfiguration"&gt;centrel-solutions.com/xiaconfiguration&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3423779" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! Can I Determine a Folder's Access Rights and Who Has Them?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2009/09/14/hey-scripting-guy-september-14-2009.aspx#3392670</link><pubDate>Tue, 08 Mar 2011 23:09:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3392670</guid><dc:creator>Chris_Eaton</dc:creator><description>&lt;p&gt;Excellent useful script thankyou....does anyone know how to get this to work for recursive paths so I can query an entire logical drive for NTFS permissions (folders only). Im pretty &amp;nbsp;new to powershell and attempted the following &lt;/p&gt;
&lt;p&gt;$Folders = Get-ChildItem c:\scripts\test123 -recurse &amp;nbsp;| where-object {$_.PsIsContainer} &lt;/p&gt;
&lt;p&gt;foreach ($folder in $folders) {&lt;/p&gt;
&lt;p&gt;$acl = get-acl $folder&lt;/p&gt;
&lt;p&gt;$acl.Access | select fileSystemRights, IsInherited, IdentityReference &amp;nbsp;| where {$_.IdentityReference -eq &amp;#39;BUILTIN\users&amp;#39;} | &lt;/p&gt;
&lt;p&gt;select &amp;nbsp;Filesystemrights, IsInherited, IdentityReference&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;This is the output you get....seems to replace certain permissions with numbers ?&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileSystemRights &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IsInherited IdentityReference &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---------------- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----------- ----------------- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-1610612736 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BUILTIN\Users &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ReadAndExecute, Synchronize &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; False BUILTIN\Users &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3392670" width="1" height="1"&gt;</description></item></channel></rss>