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

  • Thread starter Dimitris Chrysaidis
  • 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
 
S

Sharoon Shetty K [MSFT]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top