Hi all,
I'm new to using this software, so apologies if this has been asked before.
I'm currently having issues syncing with SharePoint on Office 365. I've mapped a network drive (S:) that points to the SharePoint site and have set-up the scheduled tasks with the user account that connects to the SharePoint site. However, when running the scheduled task, the log says:
Error: Cannot find the following folders:
D:\SharePoint\Templates
S:\Templates
Does anyone know why it wouldn't be able to see the S and D drives? The D is a local hard drive, so there shouldn't be any issues there as far as I can see.
Any help with this would be greatly appreciated.
Regards,
Rob
SharePoint (Office 365): Mapped network share not found in task scheduler
- Posts: 4
- Joined: 16 Nov 2016
- Posts: 8
- Joined: 14 Jun 2016
I always use the button "save as batch task" for running tasks in the scheduler. There's a page reference in the dialog explaining how to create the appropriate Windows task.
- Posts: 4
- Joined: 16 Nov 2016
Thanks, this is what I did.I always use the button "save as batch task" for running tasks in the scheduler. There's a page reference in the dialog explaining how to create the appropriate Windows task.JustOneLook
The batch job runs fine when run manually, but when run through a scheduled task it says:
"Cannot find the following folders:
S:\Templates
... Unable to connect to "Https://companyname.sharepoint.com".
Error Code 1244: The operation being requested was not performed because the user has not been authenticated. (WNetAddConnection2)"
But I can access both the SharePoint site (that's mapped as the S: drive) and the D: drive perfectly fine. I can also copy it manually, so I'm not sure why it's giving me this error...
- Posts: 17
- Joined: 20 Oct 2016
Have you already sorted this out? If not, have you set the scheduled task security options appropriately?
Perhaps tried "run with highest privileges"?
Perhaps tried "run with highest privileges"?
- Posts: 4
- Joined: 16 Nov 2016
No, it's still an issue. It's running as the SP Admin account, and when logged in and double-clicking on the batch file, it works perfectly. But when running it as a scheduled task, it says it can't find the S drive.Have you already sorted this out? If not, have you set the scheduled task security options appropriately?
Perhaps tried "run with highest privileges"?Zargron
I've tried running it with highest privileges to no avail.
- Site Admin
- Posts: 7210
- Joined: 9 Dec 2007
What user are you running the scheduled task under? That's likely the problem cause.
- Posts: 4
- Joined: 16 Nov 2016
It's a user called SP Admin. It's a member of the local administrators group and it's also the same account I've used to map the SharePoint drive with. I've also logged in locally with it to ensure it can see the drives correctly. It does have permission to view the S drive (as I said - it runs the batch perfectly fine).What user are you running the scheduled task under? That's likely the problem cause.Zenju
- Site Admin
- Posts: 7210
- Joined: 9 Dec 2007
Try running without "highest privileges" because the network shares won't be visible then:
https://support.microsoft.com/en-us/kb/937624
https://support.microsoft.com/en-us/kb/937624
- Posts: 6
- Joined: 5 Dec 2016
Create a task with same settings as your task but use something like "net use > c:\task_network.txt" and then see what is the output, if it really sees the drive.
I think that if you run cmd/bat using "Run as Administrator" (or was it elevated command prompt?), then no matter you are already admin it will use local Administration account. Run "echo %username% >> c:\task_network.txt" inside the task to write down the exact user used.
I think that if you run cmd/bat using "Run as Administrator" (or was it elevated command prompt?), then no matter you are already admin it will use local Administration account. Run "echo %username% >> c:\task_network.txt" inside the task to write down the exact user used.
- Site Admin
- Posts: 7210
- Joined: 9 Dec 2007
I've added a new FAQ item with solutions to common network problems in combination with Windows Task Scheduler:
https://freefilesync.org/faq.php#task-scheduler-network
https://freefilesync.org/faq.php#task-scheduler-network