X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; q=dns; s=default; b=gjjprZ8 NX3KwxwlJJ6FVD/rL48wJ3XHpHw4HhSPddbLqd1CHBD8ypnn2fKW0dT91ZAdWLXA onngc0uvFAiEL/rQ3QMHuKDW4ugWaWuDm/qaF0rNDVMDtObvBSZMLIpO/kQIGxgd EyV6++2G8f0PRFFo1vnMrrXJagvylX+6ZRow= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=default; bh=NG8NguoTzYV5V Tba5H8C0YFWips=; b=aoO+E64+HCxGxhpW6NqtvGGx7P0oBGOkwbt+9NNshxG7I 9am4I+iiGtnTQ+sL3KG52pDmnO+cYCzOMQxivm4bzdXh5VIQM4XaaPOx5nsre5wG eSxgvWd04RD/OT/nBdxHClLoaE+NwyJy9y58pjFq9sw2sNHKKV6XJBT3dEh+R8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Password, highest, password X-HELO: mout.gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1550605223; bh=Sa6FvzGJ5SE8VRCjV9kHT5HwW/xcoqGJppcE3oiFcP4=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=5j4s8ikXl9FMIMn7Fquay8tkzvuvBJezZYI4uSwMtBP1Rv7v6knhurRcA8BqPK6vg /3Yz6O+m3ImprBS5Ws3alyJGBqfI4vkT82L6QA/dkzEoPFrafmMiJzX2u4+r9e+QtP SM2NRld3XMxU3WnCjF309i2LCOU1jrDDbqBp/AvI= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 MIME-Version: 1.0 References: In-Reply-To: From: Bill Stewart Date: Tue, 19 Feb 2019 12:40:09 -0700 Message-ID: Subject: Re: Can't create scheduled task over ssh as current user To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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). Bill -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple