Cannot execute a task that's connected to a credential.
R
Robert Gelb
started a topic
over 6 years ago
I have a credential setup called MyCred : mydomain\myuser
I have a remove desktop setup: myserverbox. It is connected to the credential above MyCred.
I changed the Event Viewer task under Application/Tasks to be connected to MyCred credential as well.
I right-click on a remote desktop and select Command Tasks/Event Viewer menu. I get a dialog box with an error:
Execute Command Failed
Cannot execute the command: C:\WINDOWS\system32\eventvwr.exe
The user name or password is incorrect
If I go to Event Viewer and connect manually to the computer in question with the credentials from above - all is successful.
What am I missing?
P.S. Windows 10, Royal TS v4.2.60816.10000
Best Answer
S
Stefan Koell
said
over 6 years ago
Hi,
configuring credentials for tasks doesn't impersonate the user automatically. It's just a way to connect credentials and use the replacement tokens to access the credential information.
The eventvwr.exe doesn't allow you to pass on username and password using the command line, so the tasks credentials are no use in this case.
configuring credentials for tasks doesn't impersonate the user automatically. It's just a way to connect credentials and use the replacement tokens to access the credential information.
The eventvwr.exe doesn't allow you to pass on username and password using the command line, so the tasks credentials are no use in this case.
Robert Gelb
I right-click on a remote desktop and select Command Tasks/Event Viewer menu. I get a dialog box with an error:
Execute Command Failed
Cannot execute the command:
C:\WINDOWS\system32\eventvwr.exe
The user name or password is incorrect
If I go to Event Viewer and connect manually to the computer in question with the credentials from above - all is successful.
What am I missing?
P.S. Windows 10, Royal TS v4.2.60816.10000
Hi,
configuring credentials for tasks doesn't impersonate the user automatically. It's just a way to connect credentials and use the replacement tokens to access the credential information.
The eventvwr.exe doesn't allow you to pass on username and password using the command line, so the tasks credentials are no use in this case.
You can do one of the following:
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?reference_externalapp.htm
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?tutorials_workingwithtemplates.htm
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?reference_windowseventsview.htm
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
Stefan Koell
Hi,
configuring credentials for tasks doesn't impersonate the user automatically. It's just a way to connect credentials and use the replacement tokens to access the credential information.
The eventvwr.exe doesn't allow you to pass on username and password using the command line, so the tasks credentials are no use in this case.
You can do one of the following:
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?reference_externalapp.htm
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?tutorials_workingwithtemplates.htm
https://content.royalapplications.com/Help/RoyalTS/V4/index.html?reference_windowseventsview.htm
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
-
What happened to the forum?
-
About this Forum
-
Security Information
-
Supported Secure Gateway (SSH) ciphers
-
Why is no remote file browser in SCP available?
-
What encryption is used in the rtsz files when enabled?
-
Royal TS V4 License File
-
How to resolve RDP resolution issues in Windows 7 with high resolution screen
-
Auto Fill in web page connection
-
How to reference custom properties in tasks and templates?
See all 275 topics