The Win32_Share class represents a shared resource on a Win32 system. This may be a disk drive, printer, interprocess communication, or other shareable device.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.
This property has been deprecated in favour of the GetAccessMask method of this class due to the expense of calling GetEffectiveRightsFromAcl. The value will be set to NULL
The AllowMaximum property indicates whether the number of concurrent users for this resource has been limited.
Values: TRUE or FALSE. A value of TRUE indicates the number of concurrent users of this resource has not been limited and the value in the MaximumAllowed property is ignored.
The Caption property is a short textual description (one-line string) of the object.
The Description property provides a textual description of the object.
The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.
The MaximumAllowed property indicates the limit on the maximum number of users allowed to use this resource concurrently. The value is only valid if the AllowMaximum member set to FALSE
The Name property indicates the alias given to a path set up as a share on a Win32 system.
The Path property indicates the local path of the Win32 share.
Example: C:\Program Files
The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.
The Type property specifies the type of resource being shared. Types include disk drives, print queues, interprocess communications (IPC), and general devices.
SELECT * FROM Win32_Share
About this site information
This contents is created by WMI having class information.
WMI Environment is Windows Server 2008 R2 Enterprise Edition.
is Microsoft documents for "Managing Windows with WMI"
That is VB(Visual Basic) scripting sample.
is Microsoft documents for "Advanced Programming Topics in WMI .NET"
That is VB.net(Visual Basic .net) scripting sample.