dahall / TaskScheduler

Provides a .NET wrapper for the Windows Task Scheduler. It aggregates the multiple versions, provides an editor and allows for localization.
MIT License
1.21k stars 191 forks source link

always this exception The user name or password is incorrect TaskService #823

Closed pichayean closed 3 years ago

pichayean commented 5 years ago

please solve me.

when i connect to remote server by administrator user

TaskService ts = new TaskService("SL-SERVER", ".\administrator", "xxxx.xxxx", "xxxxxx", true)

always this exception System.ComponentModel.Win32Exception: 'The user name or password is incorrect'

how i do. to connect server for read task schedule.

dahall commented 5 years ago

Are you trying to use the Administrator account of the remote system? In that case, specify the machine name as the domain (e.g. "SL-SERVER\Administrator"). Also, don't forget that C# requires double backslashes to indicate the backslash between the domain and user name. I would also not use true as the final parameter unless the remote system is older than Windows Vista.

pichayean commented 5 years ago

1) i use Administrator account of the remote. 2) when i not use true in last parameter then it error always.

System.UnauthorizedAccessException: 'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))'

The username and password can access on remote desktop to remote server.

my client windows 10 my remote server windows server 2012R

Uploading image.png…

Uploading image.png…

Uploading image.png…

Uploading image.png…

How i do to connect to remote server. Please help me. Thank you.

dahall commented 5 years ago

Have you been through the content on the wiki page regarding remote server connection and all that has to be enabled on the remote server? Have you run the troubleshooting tool from the homepage? Have you looked at all of the other posts and their resolutions in this issues log? If you've gone through all that and still cannot connect, please let me know.

pichayean commented 5 years ago

In all of your questions, I've done it.

Chaosology-Asartheen commented 4 years ago

[browser] The path 'C:\Users\chaospc1\Downloads\cefsharp.winforms.75.1.141' for the selected source could not be resolved.

cannot able to install in visual studio 2019

pichayean commented 4 years ago

@asartheen-chaosa Thank you.

dahall commented 4 years ago

@asartheen-chaosa: That file is not related in any way to this library.

Fenix-Z commented 4 years ago

In all of your questions, I've done it.

@pichayean Please can you tell me how did you done connection to your local account? I'm dealing with the same problem.

dahall commented 3 years ago

Have you been able to resolve your issue?

pichayean commented 3 years ago

My problem is with remote-server permission. Solved the problem by allow client access.

thk for support.