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 (215k 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
1 answer

I have a PowerShell Script (being run in a Custom Command) that creates a Scheduled Task that runs another Custom Command but I want the resulting Scheduled ... Exclude = $False $scopeItem.SetInfo() $task.ActivityScopeItems.Add($scopeItem) $task.SetInfo() }

asked Apr 1, 2021 by Staj (350 points)
0 votes
1 answer

Hello After adding or removing users (from WebUI) from certaing sec. groups, I let a Business Rule execute two Scheduled Tasks, as shown in this http://www.adaxes.com ... a user via the Adaxes Administration Console throws the same error. - Thanks in advance.

asked Jan 22, 2016 by Boxx.dk (2.6k points)
0 votes
1 answer

Hi, I need to execute custom commands on a quarterly and yearly base, Is it possible to achieve that within Adaxes? Maybe with a scheduled task? kind regards Ingemar

asked Sep 21, 2015 by ijacob (960 points)
0 votes
1 answer

Hi Forum, is it possible in a Multi Server Setup to define One Server for scheduled Tasks? How does Adaxes choose the server executing the tasks? Thanks for your help Cheers

asked Jul 20, 2015 by esoAdxAdmin (650 points)
0 votes
1 answer

hi- I am setting up a scheduled task that will disable expired accounts and move them to a specific OU. I'd also like to send the results to my manager. Would including ... disabled and moved or is there a another attribute that will display it in a nicer way?

asked Jan 21, 2014 by MeliOnTheJob (1.7k points)
2,937 questions
2,654 answers
6,870 comments
160,403 users