Click or drag to resize

UserInfo Methods

The UserInfo type exposes the following members.

Methods
  Name Description
Public method Static member AddUserToLocalGroup Adds an existing user to the specified local groupName.
Public method Static member Code example AuthenticateUser(String, String, String) Authenticates the specified user credentials.
Public method Static member Code example AuthenticateUser(String, String, String, String) Authenticates the specified user credentials.
Public method ChangePassword Attempts to change the user's password.
Public method Static member CreateLocalGroup Creates a new local group if it does not exist already.
Public method Static member CreateLocalUser Creates a new local user if it does not exist already.
Public method Code example DefinePrivilegedAccount Defines the credentials of a privileged domain account that can be used for impersonation prior to the retrieval of user information from the Active Directory.
Public method Dispose Releases all the resources used by the UserInfo object.
Public method Static member Code example EndImpersonation Ends the impersonation of the specified user.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Releases the unmanaged resources before the UserInfo object is reclaimed by GC.
(Overrides ObjectFinalize)
Public method Static member GetBuiltInLocalGroups Returns a sorted list of the common built-in local groups. On Windows these groups have a domain name of BUILTIN.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method Static member GetLocalGroupUserList Gets a list of users that exist in the specified local groupName.
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method GetUserPropertyValue Returns the value for specified active directory property.
Public method Static member GroupNameToSID Converts the given group name to the SID corresponding to that name.
Public method ImpersonatePrivilegedAccount Impersonates the defined privileged domain account.
Public method Static member Code example ImpersonateUser Impersonates the specified user.
Public method Initialize Initializes the UserInfo object.
Public method Static member IsGroupSID Determines whether the given security identifier identifies a group.
Public method Static member IsLocalDomain Determines if specified domain is the local domain (i.e., local machine).
Public method Static member IsUserSID Determines whether the given security identifier identifies a user account.
Public method LoadSettings Loads saved settings for the UserInfo object from the config file if the PersistSettings property is set to true.
Public method Static member LocalGroupExists Determines if local group exists.
Public method Static member LocalUserExists Determines if local user exists.
Public method Static member RemoveLocalGroup Removes local group if it exists.
Public method Static member RemoveLocalUser Removes local user if it exists.
Public method Static member RemoveUserFromLocalGroup Removes an existing user from the specified local groupName.
Public method SaveSettings Saves settings for the UserInfo object to the config file if the PersistSettings property is set to true.
Public method Static member SetLocalUserPassword Sets local user's password.
Public method Static member SIDToAccountName Converts the given SID to the corresponding account name.
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Public method Static member UserIsInLocalGroup Determines if user is in the specified local groupName.
Public method Static member UserNameToSID Converts the given user name to the SID corresponding to that name.
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also