Using the mapdrv utility – Lenovo System Update Solution User Manual
Page 88
mapdrv /<function> <app id> /unc <sharename> /user <username> /pwd <password>
[/timeout <seconds>] [ /s]
Table 27. Parameters
Parameter
Description
/function
Identifies the function to provide. Valid values are store, connect, disconnect, and
display.
app id
Identifies the application. The value specified is used to form the registry key name that
contains the network share information, for example: TVSUAPPLICATION.
/unc sharename
Identifies the network share name to store. The share name should be in the UNC
form, for example:
\\myserver\myshare
/user username
Specifies the user name to store.
/pw password
Specifies the password to store.
/timeout seconds
Specifies the connection timeout value to store. The default is 30 seconds.
/s
Enables a silent operation.
The return code is 0 if an operation was successful. Otherwise, the return code is greater than 0.
When the MapDrv utility is launched with no parameters, the end user will be prompted for the network
share, user name and password, and then MapDrv will attempt to connect to the specified network share
using the specified credentials.
Using the MapDrv utility
The following sections provide ways that you can use the MapDrv command.
Displaying encrypted user name and password strings
This function displays the registry key of the network share information where the encrypted user name and
password is stored. Using the /display function will not store the user name and password in the registry.
You need to copy the encrypted user name and password to the appropriate registry key.
mapdrv /view <app id> /user <username> /pwd <password>
Example:
mapdrv /view TVSUAPPLICATION /user temp/pwd password
app id: TVSUAPPLICATION
user: temp
pwd: password
This command captures the encrypted user name and password to set up the repository with UNC path
with authentication.
Storing network share information for a ThinkVantage application
This function stores the network share information in the registry using <tvt> to define the subkey from
the main MapDrv registry key:
82
System Update Solution Deployment Guide