I save this information off from the UT, and it was written by the late Ed Rauh:
"The Wscript.Network's MapNetworkDrive will take optional user name and password parameters, for example:
oWSHNet = CREATEOBJECT('Wscript.Network')
oWSHNet.MapNetworkDrive('Q:','\\SomeServer\AppShare',.f.,'Foo','Bar')
maps drive Q: to \\SomeServer\AppShare share, does not update the user profile data to auto-map the drive again, using the user id "Foo" and the password "Bar", and this functionality exists in even the version 1 WSH implementation. The first two parameters -m the local device and the share name as a UNC are mandatory. The third parameters is optional, when true, it updates the currently logged-in user profile to auto-map this drive again when logging in. The fourth and fifth parameters are optional user name and password; the Windows Login username and password will be passed if not specified.
The Win32 API's WNetAddConnection3() is more capable, but is a bit of a PITA to implement in VFP - there's sample code showing one approach in my NETRESOURCE class on UT, and ChristofLange wrote a STRUCT class which makes the implementation easier if you don't want to use CLSHEAP for managing the structure memory yourself."
Rick