Using the mapdrv utility, Storing network share information for a tvt, Connecting to the network share for a tvt – Lenovo ThinkServer RS110 User Manual
Page 79: Using, Mapdrv, Utility, Displaying, Encrypted, User, Name

Table
26.
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,
TSEUAPPLICATION.
/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
TSEUAPPLICATION
/user
temp/pwd
password
app
id:
TSEUAPPLICATION
user:
temp
pwd:
password
This
command
captures
the
encrypted
user
name
and
password
to
setup
the
repository
with
UNC
path
with
authentication.
Storing
network
share
information
for
a
TVT
This
function
stores
the
network
share
information
in
the
registry
using
the
<tvt>
to
define
the
subkey
from
the
main
MapDrv
registry
key:
mapdrv
/store
<app
id>
/unc
<sharename>
/user
<username>
/pwd
<password>
[/timeout
<seconds>]
This
sets
the
UNC,
user
name
and
password
values
in
the
registry.
Connecting
to
the
network
share
for
a
TVT
Connect
the
network
share
for
the
specified
TVT:
mapdrv
/connect
<app
id>
[
/s]
Connects
to
the
share
using
the
UNC,
user
name
,
and
password
values
in
the
registry.
The
actual
connection
UNC
is
output
to
the
NetPath
value.
Appendix
A.
Command
line
parameters
73