Jump to content
Sign in to follow this  
EyesOnly

Disconnect a RDP Console

Recommended Posts

EyesOnly

Hello,

can somebody help me.

When i use the statement RUN("tsdiscon") for disconnect a RDP Console i get a black screen on the Client.

Is there a way or a statement to disconnect the RDP session without a black screen?

EyesOnly

Share this post


Link to post
Share on other sites
AJStevens

Tried:

Run(@ComSpec & " /c " & 'tsdiscon', "", @SW_HIDE)

instead?

Both work fine for me, but this one hides the command window that pops up right before disconnect.

Share this post


Link to post
Share on other sites
EyesOnly

Tried:

Run(@ComSpec & " /c " & 'tsdiscon', "", @SW_HIDE)

instead?

Both work fine for me, but this one hides the command window that pops up right before disconnect.

what did you mean with "instead?".

When i use this command, there is no action.No command window

Share this post


Link to post
Share on other sites
EyesOnly

this command does not work for me.

The Client (ThinClient) display a black screen.

The button "Disconnect" in the windows menu works. The session will be disconnected and the client display the login Screen.

Is the somebody how knows the command from this button???

EyesOnly

Share this post


Link to post
Share on other sites
AJStevens

what did you mean with "instead?".

When i use this command, there is no action.No command window

Instead of just RUN("tsdicon") have you tried the code I suggested.

There's no command window due to @SW_HIDE, which I thought you might want.

this command does not work for me.

The Client (ThinClient) display a black screen.

The button "Disconnect" in the windows menu works. The session will be disconnected and the client display the login Screen.

Is the somebody how knows the command from this button???

EyesOnly

What's the Client? Version of RDP? Terminal Server version?

That is the command, so if you're getting a blank screen on the client, the problem is most likely with that and not autoit, it just runs the command.

Try pasting your whole code and an explaination of what you're trying to do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×