Reference for Win32_LogicalShareSecuritySetting
|
|
Category (Kategorie): Mapped Drives and File Shares
Description (Beschreibung): The Win32_LogicalShareSecuritySetting WMI class represents security settings for a logical file.
Availability (Verfügbarkeit):
Properties (Attribute): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | Caption | Yes | Yes | Yes | Yes | - | ControlFlags | Yes | Yes | Yes | Yes | - | Description | Yes | Yes | Yes | Yes | - | Name | Yes | Yes | Yes | Yes | - | SettingID | Yes | Yes | Yes | Yes | - |
Methods (Methoden): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | GetSecurityDescriptor | Yes | Yes | Yes | Yes | - | SetSecurityDescriptor | Yes | Yes | Yes | Yes | - |
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LogicalShareSecuritySetting")
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Next
Links:
Link zur Original-Microsoft-Dokumentation
www.IT-Visions.de, (C) Dr. Holger Schwichtenberg
|