By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,947 Members | 1,594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,947 IT Pros & Developers. It's quick & easy.

Removing NTFS Folder Permissions Using .NET

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.