Add Share for a special User group in VB

Add Share for a special User group in VB

How can I add a Share in Visual Basic to a Local or Remote Machine with permission only for a special User group?

That is a rather difficult question. You can use the code I’ve already posted to add a share, but you will need to use Level = 502 (SHARE_INFO_502) instead of Level = 2. That’s the easy part. The hard part is that you must construct a Security Descriptor (SD) as part of the information you pass, and that is hard. For more information on how to deal with SDs from Visual Basic, see the Microsoft Knowledge Base article, “HowTo: Add an Access-Allowed ACE to a File Through Visual Basic” (Q194757).

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular