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?