Setting NTFS Permissions with VB.Net
From: Grigs (Grigs_at_discussions.microsoft.com)
Date: 06/30/04
- Next message: Victor Pereira: "Re: LogonUser and error_privilege_not_held redux"
- Previous message: Microsoft: "Re: What security privelege is required to call AuthzInitializeResourc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Jun 2004 07:39:01 -0700
Hello,
I've done VB for a while but an totally new to VB.Net. I am looking for specific code if possible for you. I need a way to set/change/remove permissions on folders and their sub-folders programmatically. I have seen this article...
http://support.microsoft.com/default.aspx?scid=kb;en-us;818362
Which I thought would do the trick, but it doesn't work for me. I get the error "Unspecified Error" right after this line:
objAce1.Trustee = CStr(objSIdHex)
I don't care if it is the code from the above link as long as it works. Or it can be new code. I am just having a difficult time finding something that works.
Please help!!
-- Thanx, Grigs
- Next message: Victor Pereira: "Re: LogonUser and error_privilege_not_held redux"
- Previous message: Microsoft: "Re: What security privelege is required to call AuthzInitializeResourc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]