Quantcast
Channel: Task Scheduler Managed Wrapper
Browsing all 2206 articles
Browse latest View live
↧

Closed Unassigned: Property Task.Enabled is not saved [11703]

I am using Microsoft.Win32.TaskScheduler.dll in an appliction to create and change a task. If I set the property Task.Enabled to False it will not be saved to Windows. All other information is saved...

View Article


New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

Hi I am trying to retrieve scheduled tasks from our remote server, but i'm getting an "Access is denied" exception. I am trying to access the tasks from a website on IIS 7 on Windows Server 2008. I...

View Article


New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

I'm not sure why impersonation isn't working, but do know that the underlying library has separate methods for connecting as the current user versus connecting as another identity. Try using the other...

View Article

New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

Hi dahall Thanks for your answer! If I use the other constructor, it works in all cases.var ts = new TaskService("RemoteServerName", "User", "Domain", "Password"); But since the user is already logged...

View Article

New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

Yes, that line (523) is where the wrapper calls the native library. I'm not sure why it is failing. The Microsoft documentation says that if the username is not provided, "the current token is used."...

View Article


New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

Hi dahall The user which is impersonated is indeed a domain user and even has admin rights on the server. I now tried to setup the same website on my Windows 7 machine on IIS 7.5 (not express). By...

View Article

New Post: Error: "Access is denied HRESULT: 0x80070005 (E_ACCESSDENIED)" when...

It could be, but that seems unlikely. I would check to see if there is an IIS setting, group policy or firewall rule that may be causing the problem.

View Article

Reviewed: Release 2.2.0 (May 14, 2014)

Rated 5 Stars (out of 5) - Really great effort and good work! Thanks

View Article


New Post: Security Administrator assingn

i want assign security when task schedule execute need please contact administrator means enter login Id and password or how to assign security administrator for the schedule task. sir please send me...

View Article


New Post: RegisterTaskDefinition with Windows Service credentials

Hi, I'm currently scheduling tasks using SYSTEM account: folder.RegisterTaskDefinition(task.name, td, TaskCreation.CreateOrUpdate, "SYSTEM", null, TaskLogonType.ServiceAccount); Scheduling is done from...

View Article

New Post: UnauthorizedAccessException was Handel

sir i am going to assign loig id and password i have got this erros Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) please help me how to short out it and how can assign login...

View Article

New Post: RegisterTaskDefinition with Windows Service credentials

You can supply any user credentials you want. Credentials supplied through the TaskService constructor determine access to the host specified to work with the Task Scheduler and then the credentials...

View Article

New Post: UnauthorizedAccessException was Handel

See other posts and documentation for information about access rights and the Task Scheduler.

View Article


New Post: Security Administrator assingn

See other posts and documentation for information about access rights and the Task Scheduler.

View Article

New Post: RegisterTaskDefinition with Windows Service credentials

Hello dahall, thank you for your reply. I was thinking of something "automatic": since I don't know the username and the password of Windows Service's user (and the password isn't stored in plain text,...

View Article


New Post: RegisterTaskDefinition with Windows Service credentials

Ah, I think I see. You are looking at impersonating the current user and then scheduling tasks. Others have tried this with mixed results. According to the Microsoft documentation, Task Scheduler...

View Article

Source code checked in, #90529

* Consolidated and reorganized interop code

View Article


New Post: Checking if Task Exists

I have the following function in my program to check if a task exists or not.Function doesTaskExist(ByVal nameOfTask As String, ByRef taskObject As Task) As Boolean Using taskServiceObject As...

View Article

New Post: Checking if Task Exists

You are likely experiencing the joys of UAC. When running C#, by default, it runs at reduced privileges. What happens if you run your code "as Administrator"?

View Article

New Post: Checking if Task Exists

Even with Administrator privileges/rights, it shows that the task doesn't exist. I'm beginning to think that tasks created by another user are invisible to users that didn't create it (at least to this...

View Article
Browsing all 2206 articles
Browse latest View live


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