IADsFileShare Property: Description

Property Name
Description

Property Type
String

Description
Gets and sets the description of the file share. This is the comment associated with a file share.

Example:

Dim FileShare As IADsFileShare
'Get the FileShare interface for the file share "ShareName". The DomainName can be skipped if the computer does not belong to a particular domain
Set FileShare = GetObject ("NTDS://DomainName/ComputerName/file_services/ShareName")
'Print the current description for the file share "ShareName"
Debug.Print FileShare.Description
'Change the description for the file share "ShareName"
FileShare.Description = "Test Comment"
'Save the change
FileShare.SetInfo

 

See Also