Package com.sun.jna.platform.win32
Klasse Netapi32Util
java.lang.Object
com.sun.jna.platform.win32.Netapi32Util
Netapi32 Utility API.
- Autor:
- dblock[at]dblock.org
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
A domain controller.static class
A domain trust relationship.static class
A group.static class
A local group.static class
A user.static class
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Netapi32Util.Group[]
Get local groups of the current user.getDC()
Return the domain controller for a current computer.static String
Returns the name of the primary domain controller (PDC) on the current computer.static String
Returns the name of the primary domain controller (PDC).static String
getDomainName
(String computerName) Get information about a computer.static Netapi32Util.DomainTrust[]
Retrieve all domain trusts.static Netapi32Util.DomainTrust[]
getDomainTrusts
(String serverName) Retrieve all domain trusts for a given server.static Netapi32Util.Group[]
Get the names of global groups on a computer.static Netapi32Util.Group[]
getGlobalGroups
(String serverName) Get the names of global groups on a computer.static int
Return the domain/workgroup join status for a computer.static int
getJoinStatus
(String computerName) Return the domain/workgroup join status for a computer.static Netapi32Util.LocalGroup[]
Get the names of local groups on the current computer.static Netapi32Util.LocalGroup[]
getLocalGroups
(String serverName) Get the names of local groups on a computer.static Netapi32Util.Group[]
getUserGroups
(String userName) Get groups of a given user.static Netapi32Util.Group[]
getUserGroups
(String userName, String serverName) Get groups of a given user on a given system.static Netapi32Util.UserInfo
getUserInfo
(String accountName) static Netapi32Util.UserInfo
getUserInfo
(String accountName, String domainName) static Netapi32Util.Group[]
getUserLocalGroups
(String userName) Get local groups of a given user.static Netapi32Util.Group[]
getUserLocalGroups
(String userName, String serverName) Get local groups of a given user on a given system.static Netapi32Util.User[]
getUsers()
Get the names of users on a local computer.static Netapi32Util.User[]
Get the names of users on a computer.
-
Konstruktordetails
-
Netapi32Util
public Netapi32Util()
-
-
Methodendetails
-
getDCName
Returns the name of the primary domain controller (PDC) on the current computer.- Gibt zurück:
- The name of the primary domain controller.
-
getDCName
Returns the name of the primary domain controller (PDC).- Parameter:
serverName
- Specifies the DNS or NetBIOS name of the remote server on which the function is to execute.domainName
- Specifies the name of the domain.- Gibt zurück:
- Name of the primary domain controller.
-
getJoinStatus
public static int getJoinStatus()Return the domain/workgroup join status for a computer.- Gibt zurück:
- Join status.
-
getJoinStatus
Return the domain/workgroup join status for a computer.- Parameter:
computerName
- Computer name.- Gibt zurück:
- Join status.
-
getDomainName
Get information about a computer.- Parameter:
computerName
- computer name- Gibt zurück:
- Domain or workgroup name.
-
getLocalGroups
Get the names of local groups on the current computer.- Gibt zurück:
- An array of local group names.
-
getLocalGroups
Get the names of local groups on a computer.- Parameter:
serverName
- Name of the computer.- Gibt zurück:
- An array of local group names.
-
getGlobalGroups
Get the names of global groups on a computer.- Gibt zurück:
- An array of group names.
-
getGlobalGroups
Get the names of global groups on a computer.- Parameter:
serverName
- Name of the computer.- Gibt zurück:
- An array of group names.
-
getUsers
Get the names of users on a local computer.- Gibt zurück:
- Users.
-
getUsers
Get the names of users on a computer.- Parameter:
serverName
- Name of the computer.- Gibt zurück:
- An array of users.
-
getCurrentUserLocalGroups
Get local groups of the current user.- Gibt zurück:
- Local groups.
-
getUserLocalGroups
Get local groups of a given user.- Parameter:
userName
- User name.- Gibt zurück:
- Local groups.
-
getUserLocalGroups
Get local groups of a given user on a given system.- Parameter:
userName
- User name.serverName
- Server name.- Gibt zurück:
- Local groups.
-
getUserGroups
Get groups of a given user.- Parameter:
userName
- User name.- Gibt zurück:
- Groups.
-
getUserGroups
Get groups of a given user on a given system.- Parameter:
userName
- User name.serverName
- Server name.- Gibt zurück:
- Groups.
-
getDC
Return the domain controller for a current computer.- Gibt zurück:
- Domain controller information.
-
getDomainTrusts
Retrieve all domain trusts.- Gibt zurück:
- An array of domain trusts.
-
getDomainTrusts
Retrieve all domain trusts for a given server.- Parameter:
serverName
- Server name.- Gibt zurück:
- An array of domain trusts.
-
getUserInfo
-
getUserInfo
-