1
Answer

How to modify share permission using C#?

Photo of kongp2001

kongp2001

20y
4.6k
1
I am a newbie trying to write a C# app to change share permission. Can someone shine some light which class in the .Net FW I should use? I have tried to use System.ManagementServices (using WMI), but the object structure is just too different as WMI use GetSecurityDescriptor method which I can’t find within the .Net FW. Should I use ADSI class (System.DirectoryServices)? Any input is appreciated. Thanks.

Answers (1)

0
Photo of Vincent Maverick Durano
NA 19.1k 2.2m 9y
Looks like a configuration issue. Please take a look at this short discussion:
http://stackoverflow.com/questions/31868803/error-invalid-option-6-for-langversion-must-be-iso-1-iso-2-3-4-5-or-defa