Method | Description | |
---|---|---|
GetNameFromSID ( System.Security.Principal.SecurityIdentifier sid ) : string | ||
GetSIDFromName ( string name ) : System.Security.Principal.SecurityIdentifier | ||
GetWellKnownName ( WellKnownSidType type ) : string | ||
GetWellknownSID ( WellKnownSidType type ) : System.Security.Principal.SecurityIdentifier | ||
RegSec ( |
apply registry security settings to user profiles
|
|
RemoveAccRuleFromUnknownUser ( string dir ) : System.Boolean |
remove users who are unknown to the system from the directory acl
|
|
ReplaceDirectorySecurity ( string dir, |
||
ReplaceDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
ReplaceFileSecurity ( string File, |
||
ReplaceFileSecurity ( string File, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
SetDirOwner ( string dir, |
||
SetDirOwner ( string dir, string Account ) : System.Boolean | ||
SetDirectorySecurity ( string dir, |
||
SetDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
SetRecDirAttrib ( |
apply recursive attribute to directories and files
|
public static GetNameFromSID ( System.Security.Principal.SecurityIdentifier sid ) : string | ||
sid | System.Security.Principal.SecurityIdentifier | |
return | string |
public static GetSIDFromName ( string name ) : System.Security.Principal.SecurityIdentifier | ||
name | string | |
return | System.Security.Principal.SecurityIdentifier |
public static GetWellKnownName ( WellKnownSidType type ) : string | ||
type | WellKnownSidType | |
return | string |
public static GetWellknownSID ( WellKnownSidType type ) : System.Security.Principal.SecurityIdentifier | ||
type | WellKnownSidType | |
return | System.Security.Principal.SecurityIdentifier |
public static RegSec ( |
||
where | ||
keyname | string | |
username | string | |
return | System.Boolean |
public static RemoveAccRuleFromUnknownUser ( string dir ) : System.Boolean | ||
dir | string | |
return | System.Boolean |
public static ReplaceDirectorySecurity ( string dir, |
||
dir | string | |
Account | ||
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static ReplaceDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
dir | string | |
Account | string | |
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static ReplaceFileSecurity ( string File, |
||
File | string | |
Account | ||
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static ReplaceFileSecurity ( string File, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
File | string | |
Account | string | |
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static SetDirOwner ( string dir, |
||
dir | string | |
Account | ||
return | System.Boolean |
public static SetDirOwner ( string dir, string Account ) : System.Boolean | ||
dir | string | |
Account | string | |
return | System.Boolean |
public static SetDirectorySecurity ( string dir, |
||
dir | string | |
Account | ||
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static SetDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean | ||
dir | string | |
Account | string | |
Rights | FileSystemRights | |
ControlType | AccessControlType | |
Inherit | InheritanceFlags | |
Propagation | PropagationFlags | |
return | System.Boolean |
public static SetRecDirAttrib ( |
||
dir | ||
attrib | FileAttributes | |
return | System.Boolean |