Solved

Network access under Scheduler

Posted on 1998-06-08
3
182 Views
Last Modified: 2013-12-28
Hi,
I am trying to use a scheduled BAT file which accesses network UNC paths.
The script uses the NET USE \\server\share password /USER:DOMAIN\Username command.
It fails with error 1219: The supplied credentials conflict with an existing set of credentials

The odd thing is, that if I run the cmd.exe with the scheduler (instead of scheduling the BAT file, I schedule cmd.exe), and get a command window and run the same BAT file from it, it works.
0
Comment
Question by:tall
3 Comments
 
LVL 4

Expert Comment

by:vvk
ID: 1781790
Your schedule service must be allowed to interact with desktop. And in parameters of AT command /INTERACTIVE swithch must be specified
0
 
LVL 5

Accepted Solution

by:
carmine earned 200 total points
ID: 1781791
tall

If you are using the TCP/IP protocol the way round this is to change your commands to:

net use * \\IPAddress\Share password /U:domain\UserName

Alternatively, you can configure the scheduler service to start using a user account that has the required access, rather than using the default 'system' account which does not have network access.
0
 

Author Comment

by:tall
ID: 1781792
The TCP/IP option is nice!
However, changing the start-up account won't work because then the script cannot interact with the desktop (and this is a must).

10x!

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question