Резултати от 1 до 5 от общо 5

"Как да се познае софтуерно", дали се работи в терминален режим ?

Сподели във Facebook Сподели в Twitter Изпрати на Email Сподели в LinkedIn
  1. Moderator
    Тук е от
    Mar 2005
    Мнения
    7,188
    #1

    "Как да се познае софтуерно", дали се работи в терминален режим ?

    "Как да се познае софтуерно", дали се работи в терминален режим ?
    Дали има някакъв прост начин за това - например чрез някоя environment variable

    Да изпреваря дежурния въпрос на Black Adder
    "Защо ти е това ? Дай повече информация за да ти помогнем по-добре."

    Това ми трябва в среда на Win2003 където може да има две едновременни администраторски терминални сесии, без да се изискват допълнителни лицензи. Трябва да се пусне два пъти едно приложение с различни параметри за да върши две различни неща. Самото приложение, отказва да се пусне втори път в една сесия, ако вече е пуснато. Но ако е пуснато в две различни терминални сесии, всичко е наред. Целта е това да не се прави ръчно (пускането). В момента от конзолната сесия ръчно се прави Remote Desktop към 127.0.0.1 и след това се пуска (пак ръчно) приложението втори път с необходимите параметри.

  2.  
     
  3. Senior Member
    Тук е от
    Apr 2002
    Мнения
    1,395
    #2

    Re: "Как да се познае софтуерно", дали се работи в терминален режим ?

    Q:I usually have about 15 RDP sessions open at once. They are all named different, so no confusion.

    The problem with backgrounds is its more data to stream. Create a folder on each desktop with Servers name maybe?




    A:

    Sysinternals has a great free tool called BGInfo. You can run it once to create a background/wallpaper, or use it within a script. I use it within a logon script so that it applies to any server or PC in a domain to which i log on. It will add any combination of computer name, domain name, user name, O/S, IP address, free disk space, and a dozen other attributes, in simple text form to the desktop.
    http://technet.microsoft.com/en-us/s.../bb897557.aspx


    +

    How to identify who has a terminal session and how to kill it


    Having the ability to use a terminal service (aka Remote Desktop) session to manage a Windows Server (2000, 2003, and 2008) is very useful. If you don't have a Terminal Services license installed, you are limited to to two active sessions (plus a bonus connection that I'll get to in a minute). If a person disconnects from a session without logging out, it can leave that session running. That allows you to start a long running task and come back to it later, but it does use up one of the available connections. If both sessions are being used, you will not be able to create a new terminal service connection to the server. At this point, you have three options:

    Yell down the hallway and ask "Who has a connection to server XYZ". This never works because either the person who left the connect forgot about it or didn't realize that he (or she) was supposed to logout. The other problem is that you could be working from home and the only thing that the yelling accomplishes will be to attract your dog and your child, both of which will be looking for cookies.

    Use the command line tools to identify the open sessions and kill one of them. There are two tools, qwinsta and rwinsta. If you run "qwinsta /?" from a command shell, you will get the following:

    qwinsta /?
    Display information about Terminal Sessions.
    QUERY SESSION [sessionname | username | sessionid]
    [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER]
    sessionname Identifies the session named sessionname.
    username Identifies the session with user username.
    sessionid Identifies the session with ID sessionid.
    /SERVER:servername The server to be queried (default is current).
    /MODE Display current line settings.
    /FLOW Display current flow control settings.
    /CONNECT Display current connect settings.
    /COUNTER Display current Terminal Services counters information.






    If you run "rwinsta /?", you get the following:


    rwinsta /?
    Reset the session subsytem hardware and software to known initial values.

    RESET SESSION {sessionname | sessionid} [/SERVER:servername] [/V]

    sessionname Identifies the session with name sessionname.
    sessionid Identifies the session with ID sessionid.
    /SERVER:servername The server containing the session (default is current).
    /V Display additional information.




    For the sample server XYZ, you would run "qwinsta /server:xyz" That will return something like:


    SESSIONNAME USERNAME ID STATE TYPE DEVICE
    console 0 Conn wdcon
    rdp-tcp 65536 Listen rdpwd
    gatesb 1 Disc rdpwd
    rdp-tcp#93 jobss 3 Active rdpwd




    From that output, we can take one of the IDs that was returned for the remote sessions and use rwinsta to kill that session. You would use something like:


    rwinsta 1 /SERVER:xyz




    And that will terminate that session, allowing you to open a new session. You will need admin rights to run that command, but if you are using the admin terminal service connections to the server, then you would already have the necessary access rights to the server.


    There is a third option, you can connect to the console session. This is the bonus option that I had referred to earlier. This is the session that you would get if you were physically in front of the server and were logging in on the server's mouse and keyboard. You can specify the console session as a command line parameter to the remote desktop client, mstsc.exe. The following syntax can be used to connect to the console session of a server:


    mstsc /console


    That feature will work with Server 2003 and later. On some machines, qwinsta and rwinsta may have been renamed to query.exe and reset.exe, respectively.


    [Updated at 2:42 pm]
    Steve listed an alternative to qwinsta and rwinsta on his blog. He uses quser.exe and logoff.exe, which provide pretty much the same functionality. On my machine, quser.exe was buried in c:\windows\system32\dllcache, which was odd. I wonder why it wasn't in system32? quser has an advantage over qwinsta, it lists the logon time and idle time for each session. That gives you a little more data when you have to kill someone session and you can't determine which one must die.


    + Link:

    http://www.stevetrefethen.com/blog/L...nRemotely.aspx

  4. Moderator
    Тук е от
    Mar 2005
    Мнения
    7,188
    #3

    Re: "Как да се познае софтуерно", дали се работи в терминален режим ?

    Благодаря dash,
    доколкото виждам, в ръцете на някой опитен писател на скриптове, qwinsta ще свърши чудесна работа за случая.
    Аз не съм такъв, но тъкмо една чудесна възможност да потренирам.

  5. Senior Member
    Тук е от
    Apr 2002
    Мнения
    1,395
    #4

    Re: "Как да се познае софтуерно", дали се работи в терминален режим ?

    Няма защо Митко, не е толкова сложно колкото изглежда, а и повечето хора го решават генерално по М$ - като си накупят Terminal server CAL's, но това не решава проблема с увисналите връзки ...

  6. Senior Member
    Тук е от
    Aug 2002
    Мнения
    8,784
    #5

    Re: "Как да се познае софтуерно", дали се работи в терминален режим ?

    утре ще ми носят програмка за касови терминали която прави конекции и тества
    само не натискай "фискализация "

Сподели във Facebook Сподели в Google Plus Сподели в Twitter Изпрати на Email Сподели в LinkedIn

Подобни теми

  1. Отговори: 3
    Последно: 16-08-17, 02:03
  2. Отговори: 2
    Последно: 11-10-13, 14:13
  3. Запитване за "режим полет"(airplane mode) за Samsung GT-S5660
    От dodolan във форум Смартфони, телефони
    Отговори: 2
    Последно: 11-02-12, 13:42
  4. Какво значи режим "Сън"
    От plevelka във форум Климатици Panasonic, National
    Отговори: 6
    Последно: 21-12-09, 00:41
  5. Избор на режим на картината при "LG 32LG2000"
    От taralion във форум LG телевизори
    Отговори: 2
    Последно: 14-03-09, 00:20

SetCombG.com
SetCombG.com е портален сайт и Форум за битова техника, телевизори, климатици, лаптопи и смартфони, създаден през 1999 година.
Заедно сме над 20 години!
Следвай ни
Горе