0 votes

We have a pretty cool PowerShell script written that imports users in AD from a CSV file, creates the user's home directory, creates a status of the import, archives the status as well as the CSV file used to import the user, and e-mails specified users when an import has been done. As it stands now, the script is being run with Windows Scheduled task once an hour on a virtual workstation. We want this task transferred over and managed from Adaxes.

The problem I'm having is that I can't just copy the script to the Scheduled Tasks in Adaxes and let it run every hour. When I check activity history after selecting run now, the task looks to never start. In creating the task, there's a few parts that I believe it's erring out at.

The first is Step 3: Choose the type of AD object on which the task will be performed. Not sure if there's a right one here, but it seems like none of the ones that I chose work.

The second is Step 5: Select the objects on which the task will be performed. I usually just select Finish and not select an object. Not sure if that's why it never starts (or finishes).

I've looked in the logging several hours after starting the task, but nothing shows up in the logs, so this one's a little tough for me to troubleshoot. I've spent nearly a day on this trying to get it working and nothing I do works. Any suggestions would more than welcome at this point.

by (130 points)

1 Answer

0 votes
by (216k points)

Hello,

A Scheduled Task in Adaxes runs on a certain Activity Scope. This means that the Task will be executed only for the objects of the type that you specify for the Task and only within the Scope that you define. Since at the last step of creating a Scheduled Task you select nothing, the Task just has an empty scope, that is, it has no objects to run on.

As for how to accomplish your task, take a look at the following tutorial. We think it has all you need: http://www.adaxes.com/tutorials_ActiveD ... romCSV.htm. Should you need further assistance, do not hesitate to ask.

Related questions

0 votes
0 answers

We have two instances of Adaxes set up in the Administrative console. The secondary instance is used to run some of our larger scheduled tasks, however this has since stopped working ... there a way I can get the secondary to appear in the list again? Thanks

asked Jun 12 by Homelander90 (350 points)
0 votes
1 answer

We need to run a scheduled task twice a year, so I chose every 182 days like it's suggested in here, only problem is that there is no way to change the next run ... really don't want these tasks to be triggered again if they've already been executed this year.

asked May 8 by boing (20 points)
0 votes
1 answer

It would be good to have a selectable column for the tasks schedule pane. This would allow us to easily show tasks scheduled dates and give us the ability to sort by the ... case it would be good to sort all of these password resets by their scheduled date.

asked Apr 30 by Moodie007 (60 points)
0 votes
1 answer

Hi, I am trying to find a way to have a visual overview of all enabled tasks and when they are running. Example of another app which support this: Is this maybe planned in future?

asked Oct 4, 2023 by wintec01 (1.5k points)
0 votes
1 answer

When I enable a scheduled task, instead of running at the scheduled time they all run imeadiately. This is not good behavior as changes are written in a way to reflect the ... is being enabled. I am hoping there is a powershell command to stop this behavoir.

asked Jul 10, 2023 by mightycabal (1.0k points)
3,549 questions
3,240 answers
8,232 comments
547,814 users