I
I
Ilya Kozyrev2015-09-08 13:52:21
PowerShell
Ilya Kozyrev, 2015-09-08 13:52:21

How to run an application on a terminal server in specific sessions?

Good day to all, please help me to resolve the issue.
There is a terminal server, a lot of users work on it.
It is required through cmd, or powershell, to somehow launch the application in a specific session.
I started the application on a specific server and under the user, via wmi, but I don’t understand how to run it in a specific session. The fact is that all users are sitting under the same login, so launching by the parameters Server:Login:Password is not suitable, you need something like Server:Login:Password:SessionId

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Kozyrev, 2015-09-09
@WizaXxX

There is a server, it is necessary to estimate how many resources will be required for the work of 2000 users, with a certain set of applications. Accordingly, in order not to create 2000 users, it was decided to use one user during the test, everything has already been written, the scripts work, simulate the user's work, but there is one thing, now sessions and software need to be started manually. Accordingly, this process needs to be automated.
Solution found: using the PsExec utility, it is possible to run applications in remote sessions using the -i "IdSession" parameter.

A
Alexander Nikitin, 2015-09-09
@padla2k

I'm not sure that you will be able to run the application in a particular session.
You understand that it is very wrong that your users go to the server under one login? Is this due to something specific or is it just a bug?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question