New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xScheduledTask failed #45

Closed
twarnick opened this Issue Aug 23, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@twarnick

twarnick commented Aug 23, 2016

the scheduledTask created successfully, but the verify failed.

here my scheduleTask:

xScheduledTask Task_ddd_sync {
ActionExecutable = "C:\Program Files (x86)\Robocopy\ddd_sync.cmd"
RepeatInterval = 60
ScheduleType = "Minutes"
TaskName = "ddd-sync"
DependsOn = '[xUser]TachographUser'
Ensure = "Present"
ExecuteAsCredential = $TachographUserCred
StartTime = "03:00"
}

@twarnick

This comment has been minimized.

Show comment
Hide comment
@twarnick

twarnick Aug 23, 2016

The Error Message in Event log
Source:Microsoft-Windows-Desired State Configuration/Operational:

Job {80BBADD1-6974-11E6-8C2A-000D3A2034C0} :
MIResult: 1
Error Message: Cannot create a file when that file already exists.

Message ID: HRESULT 0x800700b7,Register-ScheduledTask
Error Category: 20
Error Code: 20
Error Type: MI

twarnick commented Aug 23, 2016

The Error Message in Event log
Source:Microsoft-Windows-Desired State Configuration/Operational:

Job {80BBADD1-6974-11E6-8C2A-000D3A2034C0} :
MIResult: 1
Error Message: Cannot create a file when that file already exists.

Message ID: HRESULT 0x800700b7,Register-ScheduledTask
Error Category: 20
Error Code: 20
Error Type: MI

@PlagueHO

This comment has been minimized.

Show comment
Hide comment
@PlagueHO

PlagueHO Jul 16, 2017

Collaborator

Closed by #62

Collaborator

PlagueHO commented Jul 16, 2017

Closed by #62

@PlagueHO PlagueHO closed this Jul 16, 2017

PlagueHO added a commit that referenced this issue Jul 17, 2017

Merge pull request #62 from vlariono/Issue#45
xScheduledTask: Incorrect TaskPath handling (Fixes #45)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment