tscon 1 /dest:console
tscon 2 /dest:console
Rundll32.exe User32.dll,LockWorkStation
I realize this is old, but this helped me.
This should cover everyone, even servers I believe. The number corresponds to the RDP session. 0=console and 1+2=other sessions. Depending on how you connect to your computer determines which session you use so running all 3 should work to disconnect everyone.
Last line if optional if you want to lock screen.
Paste all of this into bat file then run when you want to disconnect from RDP
tscon 0 /dest:console
tscon 1 /dest:console
tscon 2 /dest:console
Rundll32.exe User32.dll,LockWorkStation
Could you please explain your work around. I'm having the same problem
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"72","kudosSumWeight":0,"postTime":"2013-02-06T12:16:25.458-05:00","lastPublishTime":"2013-02-06T12:16:25.458-05:00","metrics":{"__typename":"MessageMetrics","views":25076},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:LogMeIn-Hamachi/community:logmeinboard:Hamachi/message:90291/message:91421","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8aXwzfDQwOjB8aW50LDkxOTM5LDkxOTM5","node":{"__ref":"ForumReplyMessage:message:91939"}},{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8aXwzfDQwOjB8aW50LDkxOTM5LDkxOTM3","node":{"__ref":"ForumReplyMessage:message:91937"}}]},"editFrozen":false,"body@stringLength":"77","rawBody":"Could you please explain your work around. I'm having the same problem
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:91421_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"ModerationData:moderation_data:91939":{"__typename":"ModerationData","id":"moderation_data:91939","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"User:user:1248569":{"__typename":"User","id":"user:1248569","uid":1248569,"login":"adonai714","biography":null,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2022-07-15T20:12:56.579-04:00"},"deleted":false,"email":"","avatar":{"__typename":"UserAvatar","url":"https://community.logmein.com/t5/s/logmein/m_assets/avatars/default/avatar-1.svg?time=0"},"rank":{"__ref":"Rank:rank:16"},"entityType":"USER","eventPath":"community:logmein/user:1248569"},"ForumReplyMessage:message:91939":{"__typename":"ForumReplyMessage","uid":91939,"id":"message:91939","revisionNum":1,"author":{"__ref":"User:user:775339"},"readOnly":false,"repliesCount":6,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:Hamachi"},"parent":{"__ref":"ForumReplyMessage:message:91421"},"conversation":{"__ref":"Conversation:conversation:90291"},"subject":"Re: LogMeIn Hamachi Connection issues with Windows 8","moderationData":{"__ref":"ModerationData:moderation_data:91939"},"body":"Ok, here is the workaround. Create a bat file with the command
Open: \"Note Pad\"
Type in one line : \"tscon 1 /dest:console\" (without quotes)
Save file as: \"filename.bat\" (file type - All files)
That is it.
Now instead of clicking on the \"X\" or \"Log Off\" to close your remote connection simply double click on this new bat file. This returns your GUI to your local machine. This does however leave your workstation unlocked and open to any physical visitor who chooses to touch it. Set a Screen Saver password to help keep people out and set your timer to 1 minute.
Note: In my Windows 8 session I have to right click and \"run as administrator\" to have it work correctly.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"223","kudosSumWeight":0,"postTime":"2013-02-18T22:53:00.348-05:00","lastPublishTime":"2013-02-18T22:53:00.348-05:00","metrics":{"__typename":"MessageMetrics","views":24977},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:LogMeIn-Hamachi/community:logmeinboard:Hamachi/message:90291/message:91939","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":true,"endCursor":"MjUuMnwyLjF8aXwxfDQwOjB8aW50LDI5MDM3MSwyOTAzNzE","hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8aXwxfDQwOjB8aW50LDI5MDM3MSwyOTAzNzE","node":{"__ref":"ForumReplyMessage:message:290371"}}]},"editFrozen":false,"body@stringLength":"827","rawBody":"Ok, here is the workaround. Create a bat file with the command
Open: \"Note Pad\"
Type in one line : \"tscon 1 /dest:console\" (without quotes)
Save file as: \"filename.bat\" (file type - All files)
That is it.
Now instead of clicking on the \"X\" or \"Log Off\" to close your remote connection simply double click on this new bat file. This returns your GUI to your local machine. This does however leave your workstation unlocked and open to any physical visitor who chooses to touch it. Set a Screen Saver password to help keep people out and set your timer to 1 minute.
Note: In my Windows 8 session I have to right click and \"run as administrator\" to have it work correctly.
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:91939_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"ModerationData:moderation_data:290371":{"__typename":"ModerationData","id":"moderation_data:290371","status":"UNMODERATED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:290371":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:1248569"},"id":"message:290371","revisionNum":1,"uid":290371,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:Hamachi"},"parent":{"__ref":"ForumReplyMessage:message:91939"},"conversation":{"__ref":"Conversation:conversation:90291"},"subject":"Re: LogMeIn Hamachi Connection issues with Windows 8","moderationData":{"__ref":"ModerationData:moderation_data:290371"},"body":"Muchas gracias por tu respuesta me a servido de mucho, aparte de tenerlo en varias computadoras tengo una web que habrá de hamachi , https://descargarhamachi.site/
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"171","kudosSumWeight":0,"repliesCount":0,"postTime":"2022-07-15T20:18:25.694-04:00","lastPublishTime":"2022-07-15T20:18:25.694-04:00","metrics":{"__typename":"MessageMetrics","views":2353},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:LogMeIn-Hamachi/community:logmeinboard:Hamachi/message:90291/message:290371","readOnly":false,"editFrozen":false,"body@stringLength":"272","rawBody":"Muchas gracias por tu respuesta me a servido de mucho, aparte de tenerlo en varias computadoras tengo una web que habrá de hamachi , https://descargarhamachi.site/
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:290371_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"User:user:791563":{"__typename":"User","id":"user:791563","uid":791563,"login":"YW-Slayer","biography":null,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2013-02-18T21:37:48.701-05:00"},"deleted":false,"email":"","avatar":{"__typename":"UserAvatar","url":"https://community.logmein.com/t5/s/logmein/m_assets/avatars/default/avatar-9.svg?time=0"},"rank":{"__ref":"Rank:rank:18"},"entityType":"USER","eventPath":"community:logmein/user:791563"},"ModerationData:moderation_data:91937":{"__typename":"ModerationData","id":"moderation_data:91937","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:91937":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:791563"},"id":"message:91937","revisionNum":1,"uid":91937,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:Hamachi"},"parent":{"__ref":"ForumReplyMessage:message:91421"},"conversation":{"__ref":"Conversation:conversation:90291"},"subject":"Re: LogMeIn Hamachi Connection issues with Windows 8","moderationData":{"__ref":"ModerationData:moderation_data:91937"},"body":"I, too, would like to know the workaround. THanks!
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"52","kudosSumWeight":0,"repliesCount":0,"postTime":"2013-02-18T21:43:41.971-05:00","lastPublishTime":"2013-02-18T21:43:41.971-05:00","metrics":{"__typename":"MessageMetrics","views":24988},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:LogMeIn-Hamachi/community:logmeinboard:Hamachi/message:90291/message:91937","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"readOnly":false,"editFrozen":false,"body@stringLength":"57","rawBody":"I, too, would like to know the workaround. THanks!
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:91937_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"Revision:revision:91939_1":{"__typename":"Revision","id":"revision:91939_1","lastEditTime":"2013-02-18T22:53:00.348-05:00"},"Revision:revision:290371_1":{"__typename":"Revision","id":"revision:290371_1","lastEditTime":"2022-07-15T20:18:25.694-04:00"},"Revision:revision:91937_1":{"__typename":"Revision","id":"revision:91937_1","lastEditTime":"2013-02-18T21:43:41.971-05:00"},"Revision:revision:91421_1":{"__typename":"Revision","id":"revision:91421_1","lastEditTime":"2013-02-06T12:16:25.458-05:00"}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"hamachi","messageSubject":"logmein-hamachi-connection-issues-with-windows-8","messageId":"90291","replyId":"90301"},"buildId":"k2ra3WbQxEm0ebgjo41Oz","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"logmein","openTelemetryServiceVersion":"25.2.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false,"inboxMuteWipFeatureEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/community/FooterWidget/FooterWidget.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","./components/community/FooterWidgetHelpLink/FooterWidgetHelpLink.tsx","./components/community/KhorosLogo/KhorosLogo.tsx","../shared/client/components/common/List/ListGroup/ListGroup.tsx","./components/messages/MessageView/MessageView.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx"],"appGip":true,"scriptLoader":[]}