{093FF999-1EA0-4079-9525-9614C3504B74}

Windows Script Host Network Object

Registry

{40FC6ED5-2438-11CF-A3DB-080036F12502}

InProcServer32

C:\Windows\System32\wshom.ocx
  • ThreadingModel: Apartment

ProgID

WScript.Network.1

Programmable

TypeLib

{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}

VersionIndependentProgID

WScript.Network

Instance

  • Type: ComObject

Methods

  • MapNetworkDrive: void MapNetworkDrive (string, string, Variant, Variant, Variant)
  • RemoveNetworkDrive: void RemoveNetworkDrive (string, Variant, Variant)
  • EnumNetworkDrives: IWshCollection EnumNetworkDrives ()
  • AddPrinterConnection: void AddPrinterConnection (string, string, Variant, Variant, Variant)
  • RemovePrinterConnection: void RemovePrinterConnection (string, Variant, Variant)
  • EnumPrinterConnections: IWshCollection EnumPrinterConnections ()
  • SetDefaultPrinter: void SetDefaultPrinter (string)
  • AddWindowsPrinterConnection: void AddWindowsPrinterConnection (string, string, string)

Properties

  • UserDomain: string UserDomain () {get}
  • UserName: string UserName () {get}
  • UserProfile: string UserProfile () {get}
  • ComputerName: string ComputerName () {get}
  • Organization: string Organization () {get}
  • Site: string Site () {get}

MIT License. Copyright (c) 2021 Strontic.