New Post: How can I set the visibility of controls in TaskEditDialog and...
I want to hide some controls and cannot find any related API. For now I just use reflection to implement it, but it is rough. So I wonder if it is possible to provide some API or any ways to configure...
View ArticleNew Post: How can I set the visibility of controls in TaskEditDialog and...
I'll need a lot more information. Which controls are you trying to hide? What is the use case? Does the interface need to adapt its layout when controls are removed?
View ArticleNew Post: Access is denied when Registering a new task - HRESULT: 0x80070005...
This is your answer, but got lost: Answering my own question, I was able to finally achieve this using the bare minimum settings. Moving the Prinicpal properties assignments and placing them instead...
View ArticleNew Post: Access is denied when Registering a new task - HRESULT: 0x80070005...
Yes. That's correct. I somehow missed it the last time I tried to respond. So just for an FYI in case somebody hits this roadblock, if you plan to use the S4U logon type, you will need to pass the...
View ArticleReleased: Troubleshooter (May 31, 2016)
Having problems with permissions or "Access denied" errors? Try running this troubleshooting tool on the system causing the problem.
View ArticleUpdated Release: Troubleshooter (May 31, 2016)
Having problems with permissions or "Access denied" errors? Try running this troubleshooting tool on the system causing the problem.
View ArticleNew Post: How can I add Run whether user is logged on or not to my application
Hello, I have an application that creates a scheduled task, but the program it is using it needs, to run whether user is logged on or not. I have done a lot of research and tried many things, but...
View ArticleNew Post: How can I add Run whether user is logged on or not to my application
An Administrator may register a task to run as the SYSTEM account or any user can register a task as any user and supply a password. The first option cannot access the network and the second option...
View ArticleNew Post: How can I add Run whether user is logged on or not to my application
Hi Dahall, So I'm not seeing where i can use the Run whether user is logged on or not. What I can do is set the Run with TaskRunLevel.Highest, but this did not work. Running it as an Administrator did...
View ArticleNew Post: Scheduling a remote task using TaskLogonType.Password results in...
I am getting the same error when I try to create a task with a different user. I tried to manually create the task with a different user and the active user and got the same error when I entered the...
View ArticleNew Post: Update User Credentials
I am trying to use the following code to update the user password on a taskts.RootFolder.RegisterTaskDefinition("Test", td, TaskCreation.CreateOrUpdate, "User", "NewPassword", TaskLogonType.Password)...
View ArticleNew Post: Update User Credentials
var td = ts.RootFolder.Tasks["Test"]; // then call the method as you have above
View ArticleNew Post: Update User Credentials
Thank you! So, my code looks like this Using ts As New TaskService() Dim td = ts.RootFolder.Tasks("TEST") ts.RootFolder.RegisterTaskDefinition("TEST", td, TaskCreation.CreateOrUpdate, "User",...
View ArticleNew Post: How to update the additional arguments of an existing task?
Within a VB.NET programm i would like to update the additional arguments of an existing task on a remote PC. Any idea how to perform this? Thanks for a hint. Frank
View ArticleNew Post: Update User Credentials
I apologize. The corrected code would be:Using ts As New TaskService() Dim task = ts.RootFolder.Tasks("TEST") If task IsNot Nothing ts.RootFolder.RegisterTaskDefinition("TEST", task.TaskDefinition,...
View ArticleNew Post: How to update the additional arguments of an existing task?
This works best if you have initially registered either a single Action or if you have given your action an Id. I'll show both ways:Using ts AsNew TaskService("YourRemoteServerName") Dim task =...
View ArticleNew Post: How to update the additional arguments of an existing task?
Hello Dahall, Thanks for your quick reply. But when doing so I get the following error:"TaskDefinition is not a member of task". I only found Dim action = task.Definition.Actions[0] was working. But...
View ArticleNew Post: How to update the additional arguments of an existing task?
Try edited example. VB is not my primary language so I had some syntax wrong. My apologies.
View Article