Network Drive Mapping on the W2K Before logon on

L

Lee, YoungSik

Hi, all.

I have a problem for network drive mapping on the W2K Server.
I want to assign as disk-drive the shared directory on the W2K Server
Before logon on.
but, i can't assign as disk-drive the shared directory of remote
server.

it is my batch script.
---------------------
cd c:\winnt\system32
net start workstation
net USE Y: \\Server2\test /Persistent:NO
xcopy autoexnt.bat Y:
---------------------

After system reboot, autoexnt.bat is copied to the shared direcotry of
remote server.
but, I can't see the result of drive "Y" after "net use" in the CMD
windows.
result of "net use"
---------
c:\> net use
command is successfully.
-----------

additionally, batch file run after login as local administrator
account,
result of it is OK.
---------
c:\> net use
Status local remote network

----------------------------------------------------------------------------
OK Y: \\Server2\test Microsoft Windows Network
command is successfully.
-----------


What is the problem?
If you know for it, Please, let me know.

Thanks in advance.

----------------------
My environment is,
1) OS: Windows 2000 Server with SP4 (local and remote Server)
-Working Group: Workgroup

2) tool: Autoexnt.exe, it is one ofresource kit of Windows 2000
-Service of AutoExNT is started as local administrator account.

-> ref.)http://support.microsoft.com/default.aspx?scid=kb;en-us;243486

3) content of autoexnt.bat file
cd c:\winnt\system32
net start workstation
net USE Y: \\Server\test /Persistent:NO
xcopy autoexnt.bat Y:
 
H

Herb Martin

Lee said:
Hi, all.

I have a problem for network drive mapping on the W2K Server.
I want to assign as disk-drive the shared directory on the W2K Server
Before logon on.

Is this a "startup" script or what?

Who is the 'user'? At startup time (before logon) the use
defaults to the COMPUTER account which must have
privileges on the NTFS files and SHARE point.

but, i can't assign as disk-drive the shared directory of remote
server.

it is my batch script.
---------------------
cd c:\winnt\system32
net start workstation
net USE Y: \\Server2\test /Persistent:NO
xcopy autoexnt.bat Y:
---------------------

After system reboot, autoexnt.bat is copied to the shared direcotry of
remote server.
but, I can't see the result of drive "Y" after "net use" in the CMD
windows.
result of "net use"

For this kind of stuff, you might want to copy out
of the default NetLogon share of a DC which is
set as NullSessionShare (at least on older systems)
and accessible to even new systems that authenticate.

Also, if it works, you don't need to map the share to
copy from it or use it if you only wish to copy a few
files or some such....

xcopy \\%LogonServer%\NetLogon\Filename.txt destination_name
---------
c:\> net use
command is successfully.
-----------

additionally, batch file run after login as local administrator
account,
result of it is OK.

Makes a permission problem likely.

Have you tried SAVING the output of the batch file
to a log file?

Be careful about such batch files, you cannot assume
that the Environment strings, including the path are
properly set at the time they run.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top