Solved

Batch Issue

Posted on 2009-04-09
6
262 Views
Last Modified: 2013-12-05
I have a schdueled shutdown task schdueled and the user is part of the power user group. Job fails with error code could not start with status code 0x0. What could be wrong ?
0
Comment
Question by:quizkey
6 Comments
 
LVL 90

Expert Comment

by:John Hurst
Comment Utility
Schedule the task with Administrator credentials and it should work. I schedule tasks for users this was (working tasks, not shutdown tasks) and they work fine. ... Thinkpads_User
0
 
LVL 7

Accepted Solution

by:
dolomiti earned 150 total points
Comment Utility
hi,
follow these attentions:

1) make a script, run it directely (not in task schedule) and test that it goes, and does not require any clicks.

2) Add this to scheduled task, verify user/pass (if task does not start for this issue, in the state you can see it, it is not your issue), and verify check box allowing running without user logged in.

3) Don't be logged on when the task starts. If you want see what your system does when shutdown,
re-login with a no-admin user. I have noted sometime this strange behavior: if I was logged in, no in shutdown case, the task did not started.

4) In the scheduled task, in Advance manu, there is a View Log, not great, but you can give a look.

bye
vic
0
 

Author Comment

by:quizkey
Comment Utility
user is power user
0
Wish Marketing would stop bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

 
LVL 7

Expert Comment

by:dolomiti
Comment Utility
for my knowns,
power user in a server can shutdown it
(that is user belongs in Power User Group of that Server)
bye
vic
0
 

Author Comment

by:quizkey
Comment Utility
I already checked that user is part of power users group .
0
 
LVL 4

Assisted Solution

by:snowdog01
snowdog01 earned 100 total points
Comment Utility
Check the Scheduled Task log under the Advanced Menu > View Log.  You may have to scroll down to locate the most recent entry.  Look for the line "[ ***** Most recent entry is above this line ***** ]", then read above.   Generally when their is a permissions issue, this log will give you a clue.  
If the user is a power user and power user's can shutdown the workstation (in the local sec policy), then the problem may be related to permissions, it also may be related to what else is running on the workstation at the time the shutdown command is issued.  If an application is hung, the shutdown command may not be able to close the apps and therefore fail.  
I agree with dolomiti, run the script manually and see if it succeeds, then worry about automation.  It it works manually, then the Scheduled Task log may hold the key to the automation issue.
 
HTH,
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Remote Desktop Protocol or RDP has become an essential tool in many offices. This article will show you how to set up an external IP to point directly to an RDP session. There are many reasons why this is beneficial but perhaps the top reason is con…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now