Re: Mapping a network drive

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



net use \\craigpc2\payroll /USER:agyadmin admin202
--

"craig" <craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:401B3AE8-92AF-4CCC-B90E-3DF9997EC45D@xxxxxxxxxxxxxxxx
Thanks Jim,
I would like to try the net use option but i'm kind of new to the writing
the scripts. any help would be appreciated

PC with the file needed to be shared has a name of craigpc2
The shared folder is payroll
the username is agyadmin
the password is admin1202
filename is schedule.xls

the file is located at the following \\craigpc2\payroll

do i indicate delete persistent? I would like it to be always connected so
if a user clicks on the shortcut it will open the file. The limited access
profile name localadmin with no password. These profile names and
passwords
are the same for all computers in the department.

Thanks again for your help!
Craig


"James Egan" wrote:


On Thu, 4 Sep 2008 05:27:01 -0700, craig
<craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am trying to map a network drive within our small business. All
computers
are using XP Professional. I am able to map the network drive using
auto
connect using the administrator profile, but when I switch to the
profile
with limited rights, the drive shows but is disconnected. I have to
double
click on the drive and enter the administrator username and password to
connect the drive again. Is there a way to get the network drive to auto
connect without clicking on the drive and entering the administrator
password?

I am trying to access (create a shortcut) to a file within a shared
folder
of a computer on the network. I am limited on resources so I can't
obtain a
dedicated server so I was hoping this would work by accessing shared
folders
and setting up shortcuts to files. can't seem to get the shortcuts to
work
because the network drive won't connect without admin rights

Any help would be appreciated!!


Rather than map a network drive manually, perhaps you can create a
batch file which uses the "net use" command to connect the drive.

The username and password are command line parameters.

From "net use /? 2>c:\temp.txt"

The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

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

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



Jim.




.



Relevant Pages

  • Re: Mapping a network drive
    ... profile name localadmin with no password. ... I am trying to access (create a shortcut) to a file within a shared folder ... The username and password are command line parameters. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Allowing users program access.
    ... Its obviously looking for command line parameters. ... shortcut from the Administrator account to the other profiles, ... I have placed a shortcut to the programs .exe ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Copy administrator profile to user profile
    ... copying a shortcut with profile won't magicly ... >>command to execute a given application or command with administratice ... >>privileges or to use a command interpreter with administritive ... > I'd like to get away from using the administrator login, ...
    (microsoft.public.win2000.setup)
  • Re: Copy administrator profile to user profile
    ... >> I've been logging in as administrator on my Win2K computer. ... >> to copy the administrator profile to a user profile for myself so I ... >command to execute a given application or command with administratice ...
    (microsoft.public.win2000.setup)
  • Only Administrator can Open the Quicken .exe
    ... logged in as Administrator ... not contain the command "open" in the shortcut's context ... when I take a shortcut from ... Administrator, which contains "open" in the context menu, ...
    (microsoft.public.windowsxp.security_admin)