Article ID: 105995
Article Last Modified on 11/1/2006
APPLIES TO
- Microsoft Windows NT Advanced Server 3.1
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT Workstation 3.1
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0 Developer Edition
This article was previously published under Q105995
SYMPTOMS
If you use the AT command to schedule a batch file that copies files to a Microsoft LAN Manager server in a different domain, the batch file may fail and you will receive an "Access Denied" error message. However, if you execute the batch file from a command prompt, it successfully copies the files without generating an error message.
Sample batch file:
Net Use z: \\LMServer\Share
copy test.txt z:\
Net Use z: /d
CAUSE
Without domain information for the user account, using the AT command does not succeed. This is because the account it is trying to validate is the SYSTEM account. By default, the Schedule service uses the SYSTEM account for access rights.
WORKAROUND
There are two workarounds for this problem:
- Supply domain information for the user in the NET USE command, such as the following
Net Use z: \\LMServer\share password /USER:LMDomain\
guest
guest
must be a valid account in the "LMDomain" domain. - Have the Schedule Service log on as a valid account on that LAN Manager server by doing the following:
- In Control Panel, double-click the Services icon.
- Click the Schedule service, and then click Startup.
- Type the user account on the LAN Manager server (which matches a local account) with sufficient rights and type the appropriate password.
- Restart the service so the changes take effect.
Keywords: kbnetwork KB105995