Windows username and password

The story behind this issue is that I have an application that runs on many client computers.

The end users launching the application are required to close the application when they are notified of new online updates. All clients use the same SQL server database.

When updating a server application that also has SQL Server installed, an update is required for all computers on the network. I started sending messages to all users, for example MsgBox("You have to shut down our software on all other computers").

I would like to ask the server operator if he wants to close our application on all other computers.

I did this using the command line and sending messages through users on the network. However, in this case, I knew the username and password of the computer.

I want to have access to the remote computers that are running my application in order to turn my application (or any other process).

I want to know if it is possible to use VB.net or something else where I can log in to the server and get all the usernames and passwords of the computers connected to my server computer?

If this is not possible, I would like to learn about the method using the command line to send a message to all the computers on the network where my application is running. This will be used to notify end users of the need to disable the application. Something similar to MSG NET.

, , .

, , .

+4
2

, , , msg */SERVER: servername "message".

/v , msg.

.. msg , Windows 7. :

, .

MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

  username            Identifies the specified username.
  sessionname         The name of the session.
  sessionid           The ID of the session.
  @filename           Identifies a file containing a list of usernames,
                      sessionnames, and sessionids to send the message to.
  *                   Send message to all sessions on specified server.
  /SERVER:servername  server to contact (default is current).
  /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
  /V                  Display information about actions being performed.
  /W                  Wait for response from user, useful with /V.
  message             Message to send.  If none specified, prompts for it
                      or reads from stdin.`

Net session net sess . , , , , .

: . , , , , .

The information appears in a format similar to the following:
Computer      User name        Client type  Opens   Idle time
------------------------------------------------------------------------
\\BASSETT     CHRISDR          Windows 2000   1     00:00:13
\\SHARONCA    Administrator    DOS LM 2.1     0     01:05:13

, ComputerName . , . , . , , , .

, , , . , .

, , net config server/autodisconnect. . ". ". , , . , net session\ComputerName/delete.

+1

MSG.exe , CMD

Edit

" " " 5 ", :

  • (regedit.exe).

  • : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

  • AllowRemoteRPC , 1. 1, 1.

  • .

.

0

All Articles