Package org.metricshub.wmi.shares
Interface WindowsScriptHostNetworkInterface
public interface WindowsScriptHostNetworkInterface
Interface of Windows Script Host Network Object.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmapNetworkDrive(String localName, String remoteName, Boolean updateProfile, String user, String password) Add a shared network drive mapping.voidremoveNetworkDrive(String name, Boolean force, Boolean updateProfile) Remove a shared network drive mapping.
-
Method Details
-
mapNetworkDrive
void mapNetworkDrive(String localName, String remoteName, Boolean updateProfile, String user, String password) Add a shared network drive mapping.- Parameters:
localName- The name by which the mapped drive will be known locally.remoteName- The share's UNC name (\\xxx\yyy).updateProfile- Indicate whether the mapping information is stored in the current user's profile.user- The user name.password- The user password.
-
removeNetworkDrive
Remove a shared network drive mapping.- Parameters:
name- The name of the mapped drive you want to removeforce- Indicate whether to force the removal of the mapped drive.updateProfile- Indicate whether to remove the mapping from the user's profile.
-