M
M
m2_viktor2016-10-27 10:42:10
Windows
m2_viktor, 2016-10-27 10:42:10

Why does schtasks ask for a password when changing the time of a job?

Hello, such a situation, at work there is a park of win-stations + ms ad. I received an order from the management to change the task execution time in the scheduler on a part of the PC, I started digging schtasks, figured out the options, I got the following construction:
schtasks / change / s % hostname% / tn % taskname% / st 00:00
Now the very essence of the problem:
All tasks are launched on behalf of the account "owner" of the PC, let's say Vasya Pupkin's task starts on behalf of: domain.local\vasya.pupkin . And to change the execution time, schtasks will fill in the credentials of Vasya Pupkin, despite the fact that I have a domain administrator account. And I have the right to write to any file on Vasya's computer. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2016-10-27
@m2_viktor

Why does schtasks ask for a password when changing the time of a job?
Because you are running it on behalf of a different account.
How to be?
Enter password.
Or run tasks from the system account.

U
unsafePtr, 2016-12-23
@unsafePtr

I would like to see a diagram from the database and a more accurate statement of the problem.
From what comes to mind:

var nodes = repository.Users
                .Include(u => u.Nodes)
                .Include(u => u.Targets)
                .Where(u => u.Id == 25)
                .SelectMany(u => u.Targets)
                .Include(t => t.Users.Select(u => u.Nodes))
                .SelectMany(t => t.Users)
                .SelectMany(u => u.Nodes)
                .ToList();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question