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?
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?
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?
"Shay Levy [MVP]" wrote:
Hi,
> 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?
>
>
>
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.
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>r> Hi,
>> 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> 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>
| 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 |