Windows Vista Forums

Re: Disconnect TS users
  1. #1


    jacques Guest

    Re: Disconnect TS users

    Hi,
    If you use quser instead of qwinsta, you will get logon time...and
    from that to get to the session duration is a fery small step isn't it?



      My System SpecsSystem Spec

  2. #2


    Shay Levy [MVP] Guest

    Re: Disconnect TS users

    Hi Jacques,

    Running quser is the same as running 'query user'. The logon time doesn't
    show how long the session is in idle mode, which is what Sean is after.

    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar



    J> Hi,
    J> If you use quser instead of qwinsta, you will get logon time...and
    J> from that to get to the session duration is a fery small step isn't
    J> it?



      My System SpecsSystem Spec

  3. #3


    ritwik Guest

    Re: Disconnect TS users



    "Shay Levy [MVP]" wrote:

    > Hi Jacques,
    >
    > Running quser is the same as running 'query user'. The logon time doesn't
    > show how long the session is in idle mode, which is what Sean is after.
    >
    > ---
    > Shay Levy
    > Windows PowerShell MVP
    > http://blogs.microsoft.co.il/blogs/ScriptFanatic
    > PowerShell Toolbar: http://tinyurl.com/PSToolbar
    >
    >
    >
    > J> Hi,
    > J> If you use quser instead of qwinsta, you will get logon time...and
    > J> from that to get to the session duration is a fery small step isn't
    > J> it?
    >
    >
    >
    Hi,
    Isn't there any way we can use qwinsta (or other tool) to retrieve only the
    session IDs (or only Session Names) as an array to use it Powershell code?

    I think that way, managing will be quite easy.

      My System SpecsSystem Spec

  4. #4


    Shay Levy [MVP] Guest

    Re: Disconnect TS users

    Hello ritwik,

    You can try and parse the output of qwinsta but you may run into troubles
    if one of the columns is empty


    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar


    r> "Shay Levy [MVP]" wrote:
    r>

    >> Hi Jacques,
    >>
    >> Running quser is the same as running 'query user'. The logon time
    >> doesn't show how long the session is in idle mode, which is what Sean
    >> is after.
    >>
    >> ---
    >> Shay Levy
    >> Windows PowerShell MVP
    >> http://blogs.microsoft.co.il/blogs/ScriptFanatic
    >> PowerShell Toolbar: http://tinyurl.com/PSToolbar
    >> J> Hi,
    >> J> If you use quser instead of qwinsta, you will get logon time...and
    >> J> from that to get to the session duration is a fery small step
    >> isn't
    >> J> it?
    r> Hi,
    r> Isn't there any way we can use qwinsta (or other tool) to retrieve
    r> only the
    r> session IDs (or only Session Names) as an array to use it Powershell
    r> code?
    r> I think that way, managing will be quite easy.
    r>



      My System SpecsSystem Spec

Re: Disconnect TS users problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
disconnect kayla Vista mail 2 11 Nov 2009
VPN will not disconnect...? Sebastiaan Vista General 1 02 Jun 2008
Task Manager Users - Disconnect Network User Connection Brink Tutorials 0 24 Feb 2008
wow disconnect Raifen Vista General 1 29 Aug 2007
Disconnect Dialogue Box Rich Vista General 0 27 Apr 2007