Re: Can't create scheduled task over ssh as current user
- Date: Tue, 19 Feb 2019 12:40:09 -0700
- From: Bill Stewart <bstewart@xxxxxxxxx>
- Subject: Re: Can't create scheduled task over ssh as current user
On Tue, Feb 19, 2019 at 12:28 PM John Oxley wrote:
> I started off with PowerShell but re-wrote to schtasks to make this post shorter. Exactly the same thing happens:
> > Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -RunLevel Highest -User foo -Password $fooPassword
> Register-ScheduledTask : The user name or password is incorrect.
> At line:1 char:1
> + Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $ ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : AuthenticationError: (PS_ScheduledTask:Root/Microsoft/...S_ScheduledTask) [Register-Schedule
> dTask], CimException
> + FullyQualifiedErrorId : HRESULT 0x8007052e,Register-ScheduledTask
Interesting; I don't know why you're getting error 0x52E (1326 - 'The
user name or password is incorrect').
What is the version of the cygwin1.dll you're using?
3.0 now uses Kerberos/MSV1_0 S4U authentication, meaning you can run
sshd using the SYSTEM account (recommended).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple