Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Pranav Soral

@Pranav Soral
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to access Local Security Policy using c#
    P Pranav Soral

    Thanks a ton! Pranav

    C# csharp security tutorial question

  • How to set permission(Full control) to the folder..
    P Pranav Soral

    This namespace is specific to .Net 2.0 I will try to write code which works for 1.1. Thanks, Pranav

    C# csharp help tutorial question

  • How to set permission(Full control) to the folder..
    P Pranav Soral

    Try the following. //Add these namespaces to your page. using System.IO; using System.Security.AccessControl; using System.Security.Principal; //Put this code in either Page_Load or any other function string DirectoryName = @"C:\Test"; //Make sure the directory exists. string Account = @"Domain\username"; //Replace it with your Domain Name and User Name. DirectoryInfo dInfo = new DirectoryInfo(DirectoryName); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.AddAccessRule(new FileSystemAccessRule(Account, FileSystemRights.FullControl, AccessControlType.Allow)); dInfo.SetAccessControl(dSecurity); Hope it helps! Pranav

    C# csharp help tutorial question

  • How to access Local Security Policy using c#
    P Pranav Soral

    I want to access Local Security Policy (User Rights assignment) using C#. Is it possible? My requirement is to add/remove users from certain policies programatically. Thanks, Pranav

    C# csharp security tutorial question

  • How to access Local Security Policy using c#
    P Pranav Soral

    I want to access/modify Local Security Policy (User Rights Assignment) using C#. Is it possible? My requirement is to add/remove a user from a certain policy. Thanks in advance, Pranav

    C# csharp security tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups