469,903 Members | 1,430 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Removing NTFS Folder Permissions Using .NET

Ram
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder,
But the problem is, the folder has a couple of inherited permissions which I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or special
XP features?
Thanks ahead!

--Ram
Nov 20 '05 #1
4 4093
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder,
But the problem is, the folder has a couple of inherited permissions which I want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or special XP features?
Thanks ahead!

--Ram

Nov 20 '05 #2
Ram
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions
which I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or

special
XP features?
Thanks ahead!

--Ram


Nov 20 '05 #3
ISK
just a few pointers..
you could use cacls.exe thats on xp/2000 which will allow you to set/reset
permissions on folders/files. check the help on the command for usage..
in .net, you could use the wrapper classes for wmi provided by
system.management ..i'm not sure if this is what you meant when you
mentioned 'without using wmi'...
"Ram" wrote:
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey,
I'v managed to find a way of adding NTFS permissions to a certain folder, But the problem is, the folder has a couple of inherited permissions

which
I
want to delete.
How can I remove the folder's NTFS permissions WITHOUT using WMI or

special
XP features?
Thanks ahead!

--Ram



Nov 20 '05 #4
Ram
Hey ISK,
Thanks for your reply!
I know of Cacls.exe and of XCacls.exe, but I'm looking for a way of doing so
from .NET without shelling outern exec's...
About the WMI, - I cant use WMI because I dont have WMI on my servers, so
the system.management solution's out of question...
Thanks again,

--Ram
"ISK" <IS*@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
just a few pointers..
you could use cacls.exe thats on xp/2000 which will allow you to set/reset
permissions on folders/files. check the help on the command for usage..
in .net, you could use the wrapper classes for wmi provided by
system.management ..i'm not sure if this is what you meant when you
mentioned 'without using wmi'...
"Ram" wrote:
LOLZ!
I know how to do it in Windows, but how can I do it using .NET?

--Ram
"chanmmn" <ch*****@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP12.phx.gbl...
WMI???? I thought you can just right click any folders on the Windows
Explorer click the Security tab and click the Advance button???

"Ram" <ni***@bezeqint.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hey,
> I'v managed to find a way of adding NTFS permissions to a certain

folder,
> But the problem is, the folder has a couple of inherited permissions

which
I
> want to delete.
> How can I remove the folder's NTFS permissions WITHOUT using WMI or
special
> XP features?
> Thanks ahead!
>
> --Ram
>
>


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kim Lots | last post: by
1 post views Thread by Sharon | last post: by
1 post views Thread by Mohamed Zaki | last post: by
4 posts views Thread by Joey | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.