Guest Powlaz Posted March 19, 2008 Posted March 19, 2008 I have been trying to get a scheduled task to run that I made using schtasks for the 40 computers on our network. Here's my problem: If I leave the user info blank (let the task assume the credentials of the person logged in) the task doesn't run - and then I don't know if the computer is logged off (which it will be) if this method would allow the task to run. If I use the System account's credentials the task doesn't run If I use the domain admin account's credentials the task doesn't run. The task sets up and configures exactly as I expect. I will then physically go to one of the computers, log in as the user of that PC and right click and Run the scheduled task and it fails (usually can not start). I honestly would prefer to schedule/run the task for each computer from my server. Is there a network task scheduler that would allow me to view the task log for each computer in one interface. Server is Windows 2003 Std. R2. Worksations are XP Pro SP2. Thanks for the help. Po
Guest Pegasus \(MVP\) Posted March 19, 2008 Posted March 19, 2008 Re: Scheduling Task For Network "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message news:46847663-08F1-47B1-82DF-E99F2BCFC2BE@microsoft.com... >I have been trying to get a scheduled task to run that I made using >schtasks > for the 40 computers on our network. Here's my problem: > > If I leave the user info blank (let the task assume the credentials of the > person logged in) the task doesn't run - and then I don't know if the > computer is logged off (which it will be) if this method would allow the > task > to run. > If I use the System account's credentials the task doesn't run > If I use the domain admin account's credentials the task doesn't run. > > The task sets up and configures exactly as I expect. I will then > physically > go to one of the computers, log in as the user of that PC and right click > and > Run the scheduled task and it fails (usually can not start). > > I honestly would prefer to schedule/run the task for each computer from my > server. Is there a network task scheduler that would allow me to view the > task log for each computer in one interface. > > Server is Windows 2003 Std. R2. > Worksations are XP Pro SP2. > > Thanks for the help. > > Po You should show us your schtasks.exe command line if you have a problem running it it. Using schtasks.exe /query /v /s.., you can obtain a detailed list of all scheduled tasks on a remote system. If you want log details then you can, of course, examine the log file by looking at \\PCx\Admin\windows\schedlgu.txt.
Guest Powlaz Posted March 19, 2008 Posted March 19, 2008 Re: Scheduling Task For Network Thank you for the reply. I don't know where the SchTask command is that I made last time . . . Oh I see what I did. I created a job (scheduled task) using the GUI and the domain admin account and copied it to every computer. Still didn't run. This time I did this: System - schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo 1 /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /ru System I got - access is denied As Domain Admin - schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo 1 /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /u domain\administrator /p password I got - multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. >>What does this mean? When I leave user and password information out altogether the task wants to be created using my login. I am a member of the domain admins but am not a local admin on all PCs. Where do I go from here. We have serveral workstations that are used by more than one person. I need this program to run regardless of who is logged in. Thanks for the help. Po "Pegasus (MVP)" wrote: > > "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message > news:46847663-08F1-47B1-82DF-E99F2BCFC2BE@microsoft.com... > >I have been trying to get a scheduled task to run that I made using > >schtasks > > for the 40 computers on our network. Here's my problem: > > > > If I leave the user info blank (let the task assume the credentials of the > > person logged in) the task doesn't run - and then I don't know if the > > computer is logged off (which it will be) if this method would allow the > > task > > to run. > > If I use the System account's credentials the task doesn't run > > If I use the domain admin account's credentials the task doesn't run. > > > > The task sets up and configures exactly as I expect. I will then > > physically > > go to one of the computers, log in as the user of that PC and right click > > and > > Run the scheduled task and it fails (usually can not start). > > > > I honestly would prefer to schedule/run the task for each computer from my > > server. Is there a network task scheduler that would allow me to view the > > task log for each computer in one interface. > > > > Server is Windows 2003 Std. R2. > > Worksations are XP Pro SP2. > > > > Thanks for the help. > > > > Po > > You should show us your schtasks.exe command line if you have > a problem running it it. > > Using schtasks.exe /query /v /s.., you can obtain a detailed list > of all scheduled tasks on a remote system. If you want log details > then you can, of course, examine the log file by looking at > \\PCx\Admin\windows\schedlgu.txt. > > >
Guest Powlaz Posted March 19, 2008 Posted March 19, 2008 Re: Scheduling Task For Network Forgot to mention that using my credentials access was still denied. "Powlaz" wrote: > Thank you for the reply. I don't know where the SchTask command is that I > made last time . . . > Oh I see what I did. I created a job (scheduled task) using the GUI and the > domain admin account and copied it to every computer. Still didn't run. > > This time I did this: > System - > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo 1 > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /ru System > > I got - access is denied > > As Domain Admin - > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo 1 > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /u domain\administrator /p > password > > I got - multiple connections to a server or shared resource by the same > user, using more than one user name, are not allowed. > >>What does this mean? > > When I leave user and password information out altogether the task wants to > be created using my login. I am a member of the domain admins but am not a > local admin on all PCs. > > Where do I go from here. We have serveral workstations that are used by > more than one person. I need this program to run regardless of who is logged > in. > > Thanks for the help. > > Po > "Pegasus (MVP)" wrote: > > > > > "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message > > news:46847663-08F1-47B1-82DF-E99F2BCFC2BE@microsoft.com... > > >I have been trying to get a scheduled task to run that I made using > > >schtasks > > > for the 40 computers on our network. Here's my problem: > > > > > > If I leave the user info blank (let the task assume the credentials of the > > > person logged in) the task doesn't run - and then I don't know if the > > > computer is logged off (which it will be) if this method would allow the > > > task > > > to run. > > > If I use the System account's credentials the task doesn't run > > > If I use the domain admin account's credentials the task doesn't run. > > > > > > The task sets up and configures exactly as I expect. I will then > > > physically > > > go to one of the computers, log in as the user of that PC and right click > > > and > > > Run the scheduled task and it fails (usually can not start). > > > > > > I honestly would prefer to schedule/run the task for each computer from my > > > server. Is there a network task scheduler that would allow me to view the > > > task log for each computer in one interface. > > > > > > Server is Windows 2003 Std. R2. > > > Worksations are XP Pro SP2. > > > > > > Thanks for the help. > > > > > > Po > > > > You should show us your schtasks.exe command line if you have > > a problem running it it. > > > > Using schtasks.exe /query /v /s.., you can obtain a detailed list > > of all scheduled tasks on a remote system. If you want log details > > then you can, of course, examine the log file by looking at > > \\PCx\Admin\windows\schedlgu.txt. > > > > > >
Guest Pegasus \(MVP\) Posted March 19, 2008 Posted March 19, 2008 Re: Scheduling Task For Network "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message news:ADC7801B-59BD-4298-9E25-D9D686E9193D@microsoft.com... > Thank you for the reply. I don't know where the SchTask command is that I > made last time . . . > Oh I see what I did. I created a job (scheduled task) using the GUI and > the > domain admin account and copied it to every computer. Still didn't run. *** How did you copy the task to each PC? > This time I did this: > System - > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo > 1 > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /ru System > > I got - access is denied *** This means what it says: Your current account does not *** have the authority to create a task. > As Domain Admin - > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo > 1 > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /u domain\administrator /p > password > > I got - multiple connections to a server or shared resource by the same > user, using more than one user name, are not allowed. >>>What does this mean? *** This means also what it says: That you have existing *** network connections that conflict with the job you're *** trying to do. Knock them out! *** > > When I leave user and password information out altogether the task wants > to > be created using my login. I am a member of the domain admins but am not > a > local admin on all PCs. *** You cannot create a scheduled task without user *** credentials. > Where do I go from here. We have serveral workstations that are used by > more than one person. I need this program to run regardless of who is > logged > in. > > Thanks for the help. > > Po > "Pegasus (MVP)" wrote: > >> >> "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message >> news:46847663-08F1-47B1-82DF-E99F2BCFC2BE@microsoft.com... >> >I have been trying to get a scheduled task to run that I made using >> >schtasks >> > for the 40 computers on our network. Here's my problem: >> > >> > If I leave the user info blank (let the task assume the credentials of >> > the >> > person logged in) the task doesn't run - and then I don't know if the >> > computer is logged off (which it will be) if this method would allow >> > the >> > task >> > to run. >> > If I use the System account's credentials the task doesn't run >> > If I use the domain admin account's credentials the task doesn't run. >> > >> > The task sets up and configures exactly as I expect. I will then >> > physically >> > go to one of the computers, log in as the user of that PC and right >> > click >> > and >> > Run the scheduled task and it fails (usually can not start). >> > >> > I honestly would prefer to schedule/run the task for each computer from >> > my >> > server. Is there a network task scheduler that would allow me to view >> > the >> > task log for each computer in one interface. >> > >> > Server is Windows 2003 Std. R2. >> > Worksations are XP Pro SP2. >> > >> > Thanks for the help. >> > >> > Po >> >> You should show us your schtasks.exe command line if you have >> a problem running it it. >> >> Using schtasks.exe /query /v /s.., you can obtain a detailed list >> of all scheduled tasks on a remote system. If you want log details >> then you can, of course, examine the log file by looking at >> \\PCx\Admin\windows\schedlgu.txt. >> >> >>
Guest Powlaz Posted March 20, 2008 Posted March 20, 2008 Re: Scheduling Task For Network I created the job, located the job file, copied the job file to an all-access share and added a small batch script that copied the file to the login script. Made it to everyone's PC but wouldn' run. I did it 2x - once with SYSTEM credentials, once with the domain admin credentials. When they didn't work I logged in as the (usual) user of a workstation and recreated the jobs. The job I created as that user ran. I created another job (still logged in as the first user) on the same computer using the credentials of another user I know uses that PC - it did not run. Any insight on the errors I posted?? Po "Pegasus (MVP)" wrote: > > "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message > news:ADC7801B-59BD-4298-9E25-D9D686E9193D@microsoft.com... > > Thank you for the reply. I don't know where the SchTask command is that I > > made last time . . . > > Oh I see what I did. I created a job (scheduled task) using the GUI and > > the > > domain admin account and copied it to every computer. Still didn't run. > > *** How did you copy the task to each PC? > > > This time I did this: > > System - > > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo > > 1 > > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /ru System > > > > I got - access is denied > > *** This means what it says: Your current account does not > *** have the authority to create a task. > > > As Domain Admin - > > schtasks /create /tn OTSLM /tr "C:IT Tools\OTSLM\OTSLM.bat" /sc weekly /mo > > 1 > > /d Sat /st 09:00:00 /sd 04/05/2008 /s dispatch4 /u domain\administrator /p > > password > > > > I got - multiple connections to a server or shared resource by the same > > user, using more than one user name, are not allowed. > >>>What does this mean? > > *** This means also what it says: That you have existing > *** network connections that conflict with the job you're > *** trying to do. Knock them out! > *** > > > > When I leave user and password information out altogether the task wants > > to > > be created using my login. I am a member of the domain admins but am not > > a > > local admin on all PCs. > > *** You cannot create a scheduled task without user > *** credentials. > > > Where do I go from here. We have serveral workstations that are used by > > more than one person. I need this program to run regardless of who is > > logged > > in. > > > > Thanks for the help. > > > > Po > > "Pegasus (MVP)" wrote: > > > >> > >> "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message > >> news:46847663-08F1-47B1-82DF-E99F2BCFC2BE@microsoft.com... > >> >I have been trying to get a scheduled task to run that I made using > >> >schtasks > >> > for the 40 computers on our network. Here's my problem: > >> > > >> > If I leave the user info blank (let the task assume the credentials of > >> > the > >> > person logged in) the task doesn't run - and then I don't know if the > >> > computer is logged off (which it will be) if this method would allow > >> > the > >> > task > >> > to run. > >> > If I use the System account's credentials the task doesn't run > >> > If I use the domain admin account's credentials the task doesn't run. > >> > > >> > The task sets up and configures exactly as I expect. I will then > >> > physically > >> > go to one of the computers, log in as the user of that PC and right > >> > click > >> > and > >> > Run the scheduled task and it fails (usually can not start). > >> > > >> > I honestly would prefer to schedule/run the task for each computer from > >> > my > >> > server. Is there a network task scheduler that would allow me to view > >> > the > >> > task log for each computer in one interface. > >> > > >> > Server is Windows 2003 Std. R2. > >> > Worksations are XP Pro SP2. > >> > > >> > Thanks for the help. > >> > > >> > Po > >> > >> You should show us your schtasks.exe command line if you have > >> a problem running it it. > >> > >> Using schtasks.exe /query /v /s.., you can obtain a detailed list > >> of all scheduled tasks on a remote system. If you want log details > >> then you can, of course, examine the log file by looking at > >> \\PCx\Admin\windows\schedlgu.txt. > >> > >> > >> > > >
Guest Pegasus \(MVP\) Posted March 20, 2008 Posted March 20, 2008 Re: Scheduling Task For Network You cannot create a scheduled task by copying a .job file from one machine to the other. AFAIK there are two ways to create a task on an other machine: a) Create it while having a local session b) Create it with schtasks.exe. "Powlaz" <Powlaz@discussions.microsoft.com> wrote in message news:A7A0CD93-EE9D-4427-A30C-B29CEC59729D@microsoft.com... >I created the job, located the job file, copied the job file to an >all-access > share and added a small batch script that copied the file to the login > script. Made it to everyone's PC but wouldn' run. > > I did it 2x - once with SYSTEM credentials, once with the domain admin > credentials. > > When they didn't work I logged in as the (usual) user of a workstation and > recreated the jobs. The job I created as that user ran. > > I created another job (still logged in as the first user) on the same > computer using the credentials of another user I know uses that PC - it > did > not run. > > Any insight on the errors I posted?? > > Po >
Recommended Posts