stascorp / rdpwrap

RDP Wrapper Library
Apache License 2.0
14.47k stars 3.8k forks source link

set a program to auto start at logon #268

Open mircot80 opened 7 years ago

mircot80 commented 7 years ago

Hello. With Windows 10 pro is possible to set a program to auto start at logon and no start explorer.exe (like Windows server)? Thanks

shippj commented 7 years ago

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell

Replace this with whatever you want

binarymaster commented 7 years ago

See this comment: https://github.com/stascorp/rdpwrap/issues/13#issuecomment-77651843

And this link: https://support.oneidentity.com/zh-cn/kb/109474

mircot80 commented 7 years ago

Changing the shell key works but when I close the program the session does not disconnect automatically. Is there a solution?

shippj commented 7 years ago

try using notepad.exe as your shell. when you close notepad, it should log you out of RDP automatically. If it doesn't, there is a problem with windows. If it does, there is a problem with whatever program you are trying to use.

It is a shame the "start the following program on connection" setting in the RDP client wont work.

mircot80 commented 6 years ago

I tried with notepad but when I close it does not make the automatic logoff

shippj commented 6 years ago

I tested it myself and it didn't automatically log off for me neither. Older versions of windows would do that. Would you test it on a non-rdpwrapped computer?