I’m building an ASP.NET application, which will create Windows accounts and groups on the server, and set file/folder permissions for those accounts.
How do I accomplish that?
I’ve considered shelling out to CACLS.exe, but I got a feeling that’s going to get me into other problems eventually. Are there any other options in the .NET framework?
It seems it’s the System.DirectoryServices.AccountManagement Namespace I’m looking for. I’m going to wrap that up nicely in a WCF service (thanks, Shiv Kumar) and call that from my app.