Click here to get back home

Automatic files copying

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Automatic files copying Grzegorz Gruza 07-08-2005
Posted by Grzegorz Gruza on July 8, 2005, 8:58 am
Please log in for more thread options
Welcome,

I had following problem - I need to check file share on server, when
somebody put file to it, I want to another server move this file into
its local folder for further processing. I tried to do it using
following batch file:

move /Y \server\ShareName\*.* c:\XXX\Temp\
move /Y c:\XXX\Temp\*.* c:\XXX\

This batch file run from command line works OK. But I would like to run
it from task scheduler and I have a problem:
If I run my butch under account with administrative privileges - all
it's OK. But batch doesn't run from "normel user" account. I don't see
any errors in task scheduler error log, but nothing is done. When I run
this batch using schtasks /run .. then I see following error
ERROR: Passing the user credential for local connection.

I would like to run my tasks on Windows 2003, but IMO problem is for
complete NT familly.

Can anybody tell me, what should I have set to run my task?

Best regards

--
Grzegorz Gruza
When reply delete spamerom_nie. from my e-mail


Posted by Paul Adare on July 8, 2005, 4:49 am
Please log in for more thread options
microsoft.public.windows.server.security news group, Grzegorz Gruza

> But batch doesn't run from "normel user" account. I don't see
> any errors in task scheduler error log, but nothing is done. When I run
> this batch using schtasks /run .. then I see following error
> ERROR: Passing the user credential for local connection.
>
>

The move command causes cmd.exe to be invoked and the permissions on
cmd.exe do not explicitly allow your normal user to run cmd.exe unless
they are logged on interactively. So for a scheduled task, it won't
execute. You need to grant the normal user account Read & Execute and
Read permissions on cmd.exe.

--
Paul Adare
MVP - Windows - Virtual Machine
http://www.identit.ca/blogs/paul/
"The English language, complete with irony, satire, and sarcasm, has
survived for centuries without smileys. Only the new crop of modern
computer geeks finds it impossible to detect a joke that is not clearly
labeled as such."
Ray Shea


Posted by Brian Komar on July 10, 2005, 11:34 pm
Please log in for more thread options
padare@newsguy.com says...
> microsoft.public.windows.server.security news group, Grzegorz Gruza
>
> > But batch doesn't run from "normel user" account. I don't see
> > any errors in task scheduler error log, but nothing is done. When I run
> > this batch using schtasks /run .. then I see following error
> > ERROR: Passing the user credential for local connection.
> >
> >
>
> The move command causes cmd.exe to be invoked and the permissions on
> cmd.exe do not explicitly allow your normal user to run cmd.exe unless
> they are logged on interactively. So for a scheduled task, it won't
> execute. You need to grant the normal user account Read & Execute and
> Read permissions on cmd.exe.
>
>
Alternatively, assign the special account "BATCH" the Read & Execute
permissions on Cmd.exe, rather than the specific user account. This will
allow *any* user accounts defined for scheduled tasks to execute.

Brian
--
==
Brian Komar
MVP - Windows - Security
http://www.identit.ca/blogs/brian


Posted by Grzegorz Gruza on July 11, 2005, 8:28 am
Please log in for more thread options
Brian Komar <MVP> napisaƂ(a):
> padare@newsguy.com says...
>
>>microsoft.public.windows.server.security news group, Grzegorz Gruza
>>
>>
>>>But batch doesn't run from "normel user" account. I don't see
>>>any errors in task scheduler error log, but nothing is done. When I run
>>>this batch using schtasks /run .. then I see following error
>>>ERROR: Passing the user credential for local connection.
>>>
>>>
>>
>>The move command causes cmd.exe to be invoked and the permissions on
>>cmd.exe do not explicitly allow your normal user to run cmd.exe unless
>>they are logged on interactively. So for a scheduled task, it won't
>>execute. You need to grant the normal user account Read & Execute and
>>Read permissions on cmd.exe.
>>
>>
>
> Alternatively, assign the special account "BATCH" the Read & Execute
> permissions on Cmd.exe, rather than the specific user account. This will
> allow *any* user accounts defined for scheduled tasks to execute.
Until I had set appropriate rights on cmd.exe, I got "Access Denied"
eror and job "Could not start". Now I have quite differrent problem.

Best regards

--
Grzegorz Gruza


Similar ThreadsPosted
prevent copying of files August 17, 2006, 5:16 am
Security Right question when copying or moving files September 11, 2006, 2:02 pm
Very slow performance copying encrypted files to a network share. October 27, 2006, 6:01 pm
Problem with automatic updates September 21, 2006, 10:03 pm
Automatic Certificate Enrollment Problems April 5, 2006, 11:45 am
Problems setting up automatic certificate requests July 25, 2005, 8:39 am
automatic certificate request GPO VS Auto enroll February 19, 2008, 1:50 pm
Enable Automatic Screen Lock Group Policy May 30, 2006, 1:41 pm
Automatic certificate enrollment for local system failed August 3, 2006, 10:22 am
Prevent Copying July 6, 2006, 8:28 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap