We do this for all of our Users, but just for a one-time run when they are
first setup. The following command will make it permanent. They won't
have to rerun it every time they reboot, which "should" be every time they
come in to work.
net use x: \\192.168.10.25\QDLS YOUR PASSWORD /user:YOUR USERNAME
/persistent:yes
The '/persistent:yes' parm is what makes it permanent.
Thanx,
Nick
Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct (320) 679-6683
Toll free (800) 388-2155 ext. 6683
Fax (320) 679-4516
nick_radich@xxxxxxxxxxxxxx
Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
08/21/07 01:33 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
Subject
Re: Ifs shares and mapped drives
I have an idea... I don't know if it's a "simple solution" (it's
conceptually simple, but might not be easy to implement)
Windows has a command called 'NET USE' that you can use to map a drive
letter. The command has the ability to supply a userid and password. So
you can do this:
NET USE I: \\myi5\myshare mypassword
This will map the I: drive on the PC to the NetServer on the i5, and it
will use the Windows userid, but not the standard windows password.
Instead, it'll use "mypassword" as the password.
Similarly, I can do this:
NET USE I: \\myi5\myshare mypassword /USER:sillyguy
and it will not only use the password from the command line, it'll also
use the userid from the command-line. Once the drive has been mapped
this way, it'll continue to work (using the supplied userid/password)
until Windows is rebooted.
You could put this NET USE command in your user's logon script, or in a
batch file in the "Startup" folder on the PC to map the drive, and it'd
happen automatically at each boot. The tricky part is where do you get
the userid/password? Do you hard-code it in a batch file? If so, this
could become a security nightmare. I suppose you could ask the user for
it (write a program that asks the user, then runs the NET USE command)
with the appropriate values...
But, maybe you can make it work...
Smith, Mike wrote:
I have been asked to have a folder on the IFS available to one of our
departments via a Mapped Drive.
I have created the file share and mapped the drive, however, probably
80-90 % of the users do not have the same pwd for network and Iseries
signons. So, the mapping of the drive does not seem to work for them.
Apart from having a single signon solution(we don't currently have plans
for doing this) is there a simple way to get around this.
Michael Smith
iSeries.mySeries.
As an Amazon Associate we earn from qualifying purchases.