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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
//! The Shares subcategory groups classes that represent details of shared resources, such as printers and folders.
//!
//! | Class | Description |
//! |-------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
//! | [**Win32\_DFSNode**](/previous-versions/windows/desktop/wmipdfs/win32-dfsnode) | Association class<br/> Represents a root or junction node of a domain-based or stand-alone distributed file system (DFS).<br/> |
//! | [**Win32\_DFSNodeTarget**](/previous-versions/windows/desktop/wmipdfs/win32-dfsnodetarget) | Association class<br/> Represents the relationship of a DFS node to one of its targets.<br/> |
//! | [**Win32\_DFSTarget**](/previous-versions/windows/desktop/wmipdfs/win32-dfstarget) | Association class<br/> Represents the target of a DFS node.<br/> |
//! | [**Win32\_ServerConnection**](/previous-versions/windows/desktop/wmipsess/win32-serverconnection) | Instance class<br/> Represents the connections made from a remote computer to a shared resource on the local computer.<br/> |
//! | [**Win32\_ServerSession**](/previous-versions/windows/desktop/wmipsess/win32-serversession) | Instance class<br/> Represents the sessions that are established with the local computer by users on a remote computer.<br/> |
//! | [**Win32\_ConnectionShare**](/previous-versions/windows/desktop/wmipsess/win32-connectionshare) | Association class<br/> Relates a shared resource on the computer and the connection made to the shared resource.<br/> |
//! | [**Win32\_PrinterShare**](win32-printershare) | Association class<br/> Relates a local printer and the share that represents it as it is viewed over a network.<br/> |
//! | [**Win32\_SessionConnection**](/previous-versions/windows/desktop/wmipsess/win32-sessionconnection) | Association class<br/> Represents an association between a session established with the local server by a user on a remote machine, and the connections that depend on the session.<br/> |
//! | [**Win32\_SessionProcess**](win32-sessionprocess) | Association class<br/> Represents an association between a logon session and the processes associated with that session.<br/> |
//! | [**Win32\_ShareToDirectory**](win32-sharetodirectory) | Association class<br/> Relates a shared resource on the computer system and the directory to which it is mapped.<br/> |
//! | [**Win32\_Share**](win32-share) | Instance class<br/> Represents a shared resource on a computer system running Windows.<br/> |
use crateupdate;
use ;
use SystemTime;
use ;
/// Represents the state of Windows ServerConnections
update!;
/// Represents the state of Windows ServerSessions
update!;
/// Represents the state of Windows Shares
update!;
/// The `Win32_ServerConnection` WMI class represents the connections made from a remote computer
/// to a shared resource on the local computer.
///
/// <https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmipsess/win32-serverconnection>
/// The `Win32_ServerSession` WMI class represents the sessions that have been established with the
/// local computer by users on a remote computer.
///
/// <https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmipsess/win32-serversession>
/// The `Win32_Share` class represents a shared resource on a computer system running Windows. This
/// may be a disk drive, printer, interprocess communication, or other sharable device. For more
/// information about retrieving WMI classes, see Retrieving a Class.
///
/// <https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-share>