Prev | Current Page 456 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

A WshCollection object is essentially
a 0-based array of strings.
IMPERSONATING A USER WITH THE RUNAS UTILITY 181
MapNetworkDrive(strLocal, strRemote [, lUpdate] [, strUser] [, strPassword])
Creates a new drive connection for the local machine. strLocal contains the local name for the
drive specified by strRemote. The strRemote value must contain a locatable resource and usually
uses a UNC format such as \\Remote\Drive_C. 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.
RemoveNetworkDrive(strName [, lForce] [, lUpdate]) Deletes a previous network
drive mapping. If strName contains a local name, Windows only cancels that connection. If
strName contains a remote name, then Windows cancels all resources associated with that remote
name. Set lForce to True if you want to disconnect from a resource whether that resource is in
use or not. Setting lUpdate to True removes the connection from the user profile so that it
doesn??™t appear the next time that the user logs onto the machine.


Pages:
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
szkolenia dla przedsiębiorców oferty spa Wczasy nad morzem projektowanie wnętrz opony michelin