Code Script .co.uk

Home | Scripts | Tutorials | Disclaimer | Sitemap | Contact

   Network Object
 

Vbs / Network Object

Set objNetwork = WScript.CreateObject("WScript.Network")

Methods

objNetwork.MapNetworkDrive "x:","\computername\sharename"
objNetwork.EnumNetworkDrive
objNetwork.RemoveNetworkDrive
objNetwork.AddPrinterConnection
objNetwork.RemovePrinterConnection
objNetwork.AddWindowsPrinterConnection
objNetwork.EnumWindowsPrinterConnection
objNetwork.SetDefaultPrinter

Properties

Wscript.Echo objNetwork.UserName
Wscript.Echo objNetwork.ComputerName
Wscript.Echo objNetwork.UserDomain





Please note that a disclaimer applies to any code on this page.
 
   Actions
  Go Back
  Bookmark
  Print Page


   Menu
 
- Links
- Reference
- Script Editors
- Tutorials
- Vbscript