Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Getting "Error: Login failure: unknown user name or bad password" when trying to create a scheduled task

$
0
0

I am trying to create a very basic scheduled task from a powershell script and am getting the message: "Error: Login failure: unknown user name or bad password"

I only get this error on my Windows 2008r2 server and do not get the error on my Windows 2003 server.  The error occurs when I provide the /rp parameter for the password.  If I run the exact same command from a regular cmd.exe window, it works just fine.  It's just when running the command from the powershell window that I get this error.  I also tried to change an existing task's password via a powershell window and received the same error.  Creating and changing a task works as long as I don't use the /rp parameter.

Any ideas on what I am doing wrong or what I can check?


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>