Prev | Current Page 455 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"


UserName Returns a string containing the name that the user used to log on to the network.
As with any other WSH object, the WshNetwork object uses methods to work with network
resources. The following list describes the methods associated with this object.
AddPrinterConnection(strLocal, strRemote [, lUpdate] [, strUser] [, strPassword])
Creates a new printer connection for the local machine. strLocal contains the local name for
the printer specified by strRemote. The strRemote value must contain a locatable resource and
usually uses a UNC format such as \\Remote\Printer. Setting lUpdate to True adds the new
connection to the user profile, which means Windows makes the connection available each time
the user boots their machine. strUser and strPassword contain optional username and password
values required to log onto the remote machine and create the connection.
EnumNetworkDrives() Returns a WshCollection object containing the list of local and remote
drives currently mapped from the client machine. A WshCollection object is essentially a 0-based
array of strings.
EnumPrinterConnections() Returns a WshCollection object containing the list of local and
remote printers currently mapped from the client machine.


Pages:
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467
perfumy fm Stal rezerwacja hoteli pomiary wiatru Nike Buty Męskie Air Flex Trainer Lea