 |
 |
Network Management ..msdn Add comment |
 |
|
NetApiBufferFree
|
|
Frees the memory that the NetApiBufferAllocate function allocates. Call NetApiBufferFree to free the memory that other network management functions return on Windows NT, Windows 2000, and Windows XP. |
|
 |
 |
 |
|
NetApiBufferSize
|
|
The NetApiBufferSize function returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function. |
|
 |
 |
 |
|
NetConnectionEnum
|
|
Lists all connections made to a shared resource on the server or all connections established from a particular computer. |
|
 |
 |
 |
|
NetFileClose
|
|
The NetFileClose function forces a resource to close. |
|
 |
 |
 |
|
NetFileEnum
|
|
The NetFileEnum function returns information about some or all open files on a server, depending on the parameters specified. |
|
 |
 |
 |
|
NetFileGetInfo
|
|
The NetFileGetInfo function retrieves information about a particular opening of a server resource. |
|
 |
 |
 |
|
NetGetDCName
|
|
Returns the name of the primary domain controller (PDC). It does not return the name of the backup domain controller (BDC) for the specified domain. |
|
 |
 |
 |
|
NetGroupEnum
|
|
The NetGroupEnum function retrieves information about each global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory. |
|
 |
 |
 |
|
NetLocalGroupEnum
|
|
The NetLocalGroupEnum function returns information about each local group account on the specified server. |
|
 |
 |
 |
|
NetMessageBufferSend
|
|
Sends a buffer of information to a registered message alias.
|
|
 |
 |
 |
|
NetMessageNameAdd
|
|
Registers a message alias in the message name table. The function requires that the messenger service be started.
|
|
 |
 |
 |
|
NetMessageNameDel
|
|
Deletes a message alias in the message name table. The function requires that the messenger service be started. |
|
 |
 |
 |
|
NetMessageNameEnum
|
|
Lists the message aliases that receive messages on a specified computer. The function requires that the messenger service be started.
|
|
 |
 |
 |
|
NetScheduleJobAdd
|
|
Submits a job to run at a specified future time and date.
|
|
 |
 |
 |
|
NetScheduleJobDel
|
|
The NetScheduleJobDel function deletes a range of jobs queued to run at a computer. |
|
 |
 |
 |
|
NetScheduleJobEnum
|
|
Lists the jobs queued on a specified computer. |
|
 |
 |
 |
|
NetServerEnum
|
|
Lists all servers of the specified type that are visible in a domain. |
|
 |
 |
 |
|
NetServerGetInfo
|
|
The NetServerGetInfo function retrieves current configuration information for the specified server. |
|
 |
 |
 |
|
NetSessionEnum
|
|
Provides information about sessions established on a server. |
|
 |
 |
 |
|
NetShareAdd
|
|
Shares a server resource. |
|
 |
 |
 |
|
NetShareDel
|
|
Deletes a share name from a server"s list of shared resources, disconnecting all connections to the shared resource. |
|
 |
 |
 |
|
NetShareEnum
|
|
The NetShareEnum function retrieves information about each shared resource on a server or the local computer. |
|
 |
 |
 |
|
NetShareSetInfo
|
|
Sets the parameters of a shared resource. |
|
 |
 |
 |
|
NetUserAdd
|
|
Adds a user account and assigns a password and privilege level.
|
|
 |
 |
 |
|
NetUserChangePassword
|
|
Changes user`s password for a specified network server or domain.
|
|
 |
 |
 |
|
NetUserDel
|
|
Deletes a user account from a server. |
|
 |
 |
 |
|
NetUserEnum
|
|
The NetUserEnum function provides information about all user accounts on a server. |
|
 |
 |
 |
|
NetUserGetGroups
|
|
The NetUserGetGroups function retrieves a list of global groups to which a specified user belongs. |
|
 |
 |
 |
|
NetUserGetInfo
|
|
Retrieves information about a particular user account on a server. |
|
 |
 |
 |
|
NetUserGetLocalGroups
|
|
The NetUserGetLocalGroups function retrieves a list of local groups to which a specified user belongs.
|
|
 |
 |
 |
|
NetUserSetInfo
|
|
Sets the parameters of a user account.
|
|
 |
 |
 |
|
NetWkstaGetInfo
|
|
The NetWkstaGetInfo function returns information about the configuration of a workstation. |
|
 |
 |
 |
|
NetWkstaTransportEnum
|
|
The NetWkstaTransportEnum function supplies information about transport protocols that are managed by the redirector, which is the software on the client computer that generates file requests to the server computer. |
|
 |
 |
 |
|
NetWkstaUserEnum
|
|
The NetWkstaUserEnum function lists information about all users currently logged on to the workstation. This list includes interactive, service and batch logons. |
|
 |
 |
 |
 |
| Code examples: |
 |
|
|
 |
|
 |
 |
User Contributed Notes: |
 |
 |
 |
 |
 |
 | Hoffa | 2005-03-27 08:03:31 |  |
 |
 |
 | Is there a way to start a process in a remote computer from your local computer over a network and in the same way as the proces should have been started from the remote computer itself? |  |
 |
 |
 |
 | GavD | 2006-05-05 09:55:22 |  |
 |
 |
 | Dim WMISvc, intProcID, intErrVal Set WMISvc = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strMachineName & "\root\cimv2:Win32_Process") intErrVal = WMISvc.Create("notepad.exe",null,null,intProcID) If intErrVal = 0 Then WScript.Echo "Created - process id is " & intProcID Else WScript.Echo "Error creating process" End If |  |
 |
 |
 |
 |
 |
|