Re: Starting Terminal Services Sessions from the server
If I understand correctly, you want to be able to automate the creation of
Terminal Services session with different user accouts.
If you're using Win2k3 Terminal Services, you can try this to see if it
works for you:
In your programs/scripts:
1. Use TSWMI Win32_TSLogonSetting to set autologon to user1. Make sure
PromptForPassword property is set to 0.
2. Wait a few seconds, Execute/CreateProcess with "mstsc.exe /v:servername".
A new User1 TS session will be created. If you have startup script, it
should be running within the session
3. Use TSWMI Win32_TSLogonSetting to set autologon to User2. wait a few
seconds
4. Wait a few seconds, Execute/CreateProcess with "mstsc.exe /v:servername".
A new User2 TS session will be created. it should be running within the
session
5. repeat step1 and 2 with your user account as many time as you need.
If you want to allow a single user account to have multiple session, you can
set this property with Win32_TerminalServiceSetting.SetSingleSession Method
Thanks
Soo Kuan
For more info on TSWMI, please visit:
http://blogs.msdn.com/ts/archive/20...2900_-Remote-Configuration-Primer-Part-1.aspx
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"decksta" <decksta@discussions.microsoft.com> wrote in message
news
09AAEBB-D8D3-4DCD-8ACA-609A7AB2F98E@microsoft.com...
> Is it possible to start terminal services sessions from the local server
> via
> startup scripts?
>
> I would like to have say 8 users on a server and when that server boots, a
> script starts a terminal services session for each user. Those user
> sessions
> would then have their own set of startup scripts to run applications (in
> this
> case for UI testing).
>
> Is this possible?
>
> Thanks in advance.