Windows 2000 / XP Pro "Incoming Connections" dial-up server - Disconnect incoming call from command

  • Thread starter Thread starter Dimitris Chrysaidis
  • Start date Start date
D

Dimitris Chrysaidis

I have the following scenario:

A dial-up client connects to Windows 2000 or XP Pro "Incoming Connections"
dial-up server. When it is connected, an icon appears in "Network and
Dial-Up Connections" window identifying the calling user.

On the dial-up server machine, I can easily disconnect the incoming user by
right-clicking on the calling user icon and selecting "Disconnect". I need a
way to do the same from command-line and, so far, the only way that this
seems possible is by stoping the RemoteAccess service ("net stop
RemoteAccess" command).

This causes problems so another way must be found. "Rasdial" and"Rasphone"
commands do not work on "Incoming Connection" interface nor on the calling
user's connection.

It is verry irritating that something that can be easily achieved by the GUI
cannot be done in command line (and therefore cannot be automated).


Any ideas or suggestions are welcome.

Dimitris Chrysaidis
 
Rasdial.exe and rasphone.exe are client side tools to connect and
disconnect. The tools for the server side is through 'MPR api' or netsh.
I was not able to find any netsh command corresponding to disconnecting a
particular user. [netsh ras show client -> shows all the clients connected].
MprAdminPortDisconnect() can be used to disconnect a particular port.

Thanks
Sharoon
 
Back
Top