| ProgID | Wscript.WshNetwork |
| File name | WSHom.Ocx |
| CLSID | F935DC26-1CF0-11d0-ADB9-00C04FD58A0B |
| IID | F935DC25-1CF0-11d0-ADB9-00C04FD58A0B |
The following table describes the properties associated with the WshNetwork object.
| Property | Description |
|---|---|
| ComputerName | A string representation of the computer name. |
| UserDomain | A string representation of the user's domain name. |
| UserName | A string representation of the user's name. |
The following table describes the methods associated with the WshNetwork object.
| Method | Description |
|---|---|
| AddPrinterConnection | Maps a remote printer to a local resource name. |
| EnumNetworkDrives | Returns the current network drive mappings. |
| EnumPrinterConnections | Returns the current network drive mappings. |
| MapNetworkDrive | Maps a share point to a local resource name. |
| RemoveNetworkDrive | Removes the current resource connection. |
| RemovePrinterConnection | Removes a current resource connection. |
| SetDefaultPrinter | Sets the default printer. |