Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question