Lenovo ThinkPad T540p (English) System Update 3.14 Deployment Guide - Page 87

Command line interface, Using the MapDrv utility, Displaying encrypted user name and password strings

Page 87 highlights

Table 26. The MapDrv settings and values (continued) Value Description NetPath Value output from the MapDrv utility to indicate the actual connection path (may be IP dotted format if the nameserver is not working). The actual connection path may not be the same as the stored UNC value. The MapDrv utility also enables an administrator to use the encryption engine to generate an encrypted user name and password, which can be used to pre-populate network share information on multiple systems. Using the encryption engine in this manner does not update the registry on the system it's running on. Command line interface The command line interface to the MapDrv utility is as follows: mapdrv / /unc /user /pwd [/timeout ] [ /s] Table 27. Parameters Parameter / /unc /user /pw /timeout /s Description Identifies the function to provide. Valid values are store, connect, disconnect, and display. Identifies the application. The value specified is used to form the registry key name that contains the network share information. For example, TVSUAPPLICATION. Identifies the network share name to store. The share name should be in the UNC form (e.g. \\myserver\myshare). Specifies the user name to store. Specifies the password to store. Connection timeout value to store. The default is 30 seconds. Performs the operation silently. The Return code is 0 if operation was successful. Otherwise, the return code is greater than 0. When the MapDrv utility is launched with no parameters, the end user is prompted for the network share, user name and password and then MapDrv attempts to connect to the specified network share using the specified credentials. Using the MapDrv utility The following sections provides 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 /user /pwd For example, mapdrv /view TVSUAPPLICATION /user temp/pwd password Appendix A. Command line parameters 81

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92

Table 26. The MapDrv settings and values (continued)
Value
Description
NetPath
Value output from the MapDrv utility to indicate
the actual connection path (may be IP dotted
format if the nameserver is not working). The
actual connection path may not be the same as the
stored UNC value.
The MapDrv utility also enables an administrator to use the encryption engine to
generate an encrypted user name and password, which can be used to
pre-populate network share information on multiple systems. Using the encryption
engine in this manner does not update the registry on the system it’s running on.
Command line interface
The command line interface to the MapDrv utility is as follows:
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 (e.g. \\myserver\myshare).
/user <username>
Specifies the user name to store.
/pw <password>
Specifies the password to store.
/timeout <seconds>
Connection timeout value to store. The default is 30 seconds.
/s
Performs the operation silently.
The Return code is 0 if operation was successful. Otherwise, the return code is
greater than 0.
When the MapDrv utility is launched with no parameters, the end user is
prompted for the network share, user name and password and then MapDrv
attempts to connect to the specified network share using the specified credentials.
Using the MapDrv utility
The following sections provides 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>
For example,
mapdrv /view TVSUAPPLICATION /user temp/pwd password
Appendix A. Command line parameters
81