-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathConvertTo-QuserObject.Four_Users_Two_Disc_Three_Idle.psd1
77 lines (76 loc) · 2.47 KB
/
ConvertTo-QuserObject.Four_Users_Two_Disc_Three_Idle.psd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@{
Parameters = @{
QuserOutput = @{
Server = 'localhost'
Result = @(
'USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME',
' admin.xxxxxxxx 2 Disc 15+15:12 7/20/2017 1:19 PM',
' admin.xxxxx rdp-tcp#54 3 Active 1:39 7/21/2017 5:35 AM',
' xxxxxxxx 4 Disc 6+04:10 7/21/2017 9:25 AM',
'>vertigoray console 5 Active . 8/9/2017 4:40 PM'
)
}
}
Output = @(
@{
Server = 'localhost'
Username = 'admin.xxxxxxxx'
Sessionname = ''
Id = 2
State = 'Disc'
IdleTime = @{
Type = 'System.TimeSpan'
Value = '15.15:12:00'
}
LogonTime = @{
Type = 'System.DateTime'
Value = '07/20/2017 13:19:00'
}
},
@{
Server = 'localhost'
Username = 'admin.xxxxx'
Sessionname = 'rdp-tcp#54'
Id = 3
State = 'Active'
IdleTime = @{
Type = 'System.TimeSpan'
Value = '0.01:39:00'
}
LogonTime = @{
Type = 'System.DateTime'
Value = '07/21/2017 05:35:00'
}
},
@{
Server = 'localhost'
Username = 'xxxxxxxx'
Sessionname = ''
Id = 4
State = 'Disc'
IdleTime = @{
Type = 'System.TimeSpan'
Value = '6.04:10:00'
}
LogonTime = @{
Type = 'System.DateTime'
Value = '07/21/2017 09:25:00'
}
},
@{
Server = 'localhost'
Username = 'vertigoray'
Sessionname = 'console'
Id = 5
State = 'Active'
IdleTime = @{
Type = 'System.Void'
Value = $null
}
LogonTime = @{
Type = 'System.DateTime'
Value = '08/09/2017 16:40:00'
}
}
)
}