Next Generation Emulation banner
1 - 9 of 9 Posts

·
War Games coder
Joined
·
1,926 Posts
Discussion Starter · #1 ·
Hello... I have a windows file share (well, actually, a samba share on a FreeBSD RAID 5 server) that I map to a network drive (Z:) that requires a user name and password. Windows handles that no problem (log on as a different user)... until I reboot windows. Then it forgets it all. Any idea how to make the login settings persistent? It gets annoying to have to input a user name and password every time I reboot and want to access my files.
 

·
Registered
Joined
·
2,583 Posts
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[[email protected] domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


NET USE connects a computer to a shared resource or disconnects a
computer from a shared resource. When used without options, it lists
the computer's connections.

devicename Assigns a name to connect to the resource or specifies
the device to be disconnected. There are two kinds of
devicenames: disk drives (D: through Z:) and printers
(LPT1: through LPT3:). Type an asterisk instead of a
specific devicename to assign the next available
devicename.
\\computername Is the name of the computer controlling the shared
resource. If the computername contains blank characters,
enclose the double backslash (\\) and the computername
in quotation marks (" "). The computername may be from
1 to 15 characters long.
\sharename Is the network name of the shared resource.
\volume Specifies a NetWare volume on the server. You must have
Client Services for Netware (Windows Workstations)
or Gateway Service for Netware (Windows Server)
installed and running to connect to NetWare servers.
password Is the password needed to access the shared resource.
* Produces a prompt for the password. The password is
not displayed when you type it at the password prompt.
/USER Specifies a different username with which the connection
is made.
domainname Specifies another domain. If domain is omitted,
the current logged on domain is used.
username Specifies the username with which to logon.
/SMARTCARD Specifies that the connection is to use credentials on
a smart card.
/SAVECRED Specifies that the username and password are to be saved.
This switch is ignored unless the command prompts for username
and password. This option is not available on Windows XP
Home Edition and will be ignored.
/HOME Connects a user to their home directory.
/DELETE Cancels a network connection and removes the connection
from the list of persistent connections.
/PERSISTENT Controls the use of persistent network connections.
The default is the setting used last.
YES Saves connections as they are made, and restores
them at next logon.
NO Does not save the connection being made or subsequent
connections; existing connections will be restored at
next logon. Use the /DELETE switch to remove
persistent connections.
NET HELP command | MORE displays Help one screen at a time.
If you used the wizard, it should give you the option of "reconnecting at logon" and the first time you input your credentials, there should be the option to save them, but this is the command-line way to do it.
 

·
War Games coder
Joined
·
1,926 Posts
Discussion Starter · #3 ·
Yeah, I'd tried the "reconnect at logon" option, and it promptly forgot to reconnect on logon. I'll try the NET USE thing next - if it works, I'll have to see if I can make it start up automatically (maybe simple as putting a batch file into the startup folder).
 

·
Registered
Joined
·
2,583 Posts
KillerShots said:
Yeah, I'd tried the "reconnect at logon" option, and it promptly forgot to reconnect on logon. I'll try the NET USE thing next - if it works, I'll have to see if I can make it start up automatically (maybe simple as putting a batch file into the startup folder).
Actually, you could define a local logon script for your user in gpedit.msc.
 

·
Registered
Joined
·
378 Posts
i've noticed that if the network share is on a different domain/workgroup than the one your computer is on, the PC won't remember the username/password with the wizard. Haven't ever tried via the commandline.
 

·
War Games coder
Joined
·
1,926 Posts
Discussion Starter · #7 ·
All good and well, but neither of my windows versions has a "save my password" checkbox (see attached)
 

·
War Games coder
Joined
·
1,926 Posts
Discussion Starter · #9 ·
That picture was from XP home, but I am having the same problem on Pro. At any rate, I need it for both.
 
1 - 9 of 9 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top