Hello a have problem to run program after reconnect session (taken session).
In me rdp file I have alternate shell:s:"C:\Windows\notepad.exe" but its working only in first login, when I logging from another computer (taken session) its doesn't work. Anybody help ?
Taken session problem to run program
Re: Taken session problem to run program
Hello,
In the AdminTool, click on the Server tile and click on "Group Policies (GPO)"
Check the "Allow users reconnection when sessions are disconnected."
Check also the "Allow automatic reconnections when a session is disconnected."
You can also set up a timeout for disconnected sessions which will cause a disconnected user session to automatically logoff after a while.
If you want your disconnected sessions to terminate quickly, type in 0.5 for 30 sec. Enter 0 if you want your remote sessions to never end.
If your server is the member of a domain, this strategy may need to be set directly on the domain controller.
Open your domain strategy object editor (gpedit.msc) and locate the following strategy :
Computer configuration / Administrative Template / Windows components / Remote Desktop Services / Remote Desktop Session Host / Session time limit /
You can also make sure your domain controller do not prevent local strategies to be executed. This strategy needs to be disabled and is located in :
Computer configuration / Policies / Administrative Template / System / Group Policy / Turn off Local Group Policy objects processing.
Either solution should work, choose the one that fits your preference.
In the AdminTool, click on the Server tile and click on "Group Policies (GPO)"
Check the "Allow users reconnection when sessions are disconnected."
Check also the "Allow automatic reconnections when a session is disconnected."
You can also set up a timeout for disconnected sessions which will cause a disconnected user session to automatically logoff after a while.
If you want your disconnected sessions to terminate quickly, type in 0.5 for 30 sec. Enter 0 if you want your remote sessions to never end.
If your server is the member of a domain, this strategy may need to be set directly on the domain controller.
Open your domain strategy object editor (gpedit.msc) and locate the following strategy :
Computer configuration / Administrative Template / Windows components / Remote Desktop Services / Remote Desktop Session Host / Session time limit /
You can also make sure your domain controller do not prevent local strategies to be executed. This strategy needs to be disabled and is located in :
Computer configuration / Policies / Administrative Template / System / Group Policy / Turn off Local Group Policy objects processing.
Either solution should work, choose the one that fits your preference.
Olivier
TSplus support team administrator

TSplus support team administrator
