0 votes

Hello,

I need a way to populate with a schedule task "userWorkstations" with a list of computer objects located under a specific OU. The process must not relpace values already in "userWorkstations" attribute.

Thanks,

Mic

by (180 points)
0

Hello Mic,

Do we understand correctly that you need to take all the computers located in a specific OU and add them to the userWorkstations property of all users in a certain location? If that is not correct, please, describe the desired workflow in all the possible details with live examples.

0

Hello,

you need to take all the computers located in a specific OU and add them to the userWorkstations property --> this is right

I need to add them to the userWorkstations property of users that I pick-up from AD (can be one or several users at a time).

0

Hello Mic,

Sorry for the confusion, but we are not sure we understand the desired workflow. If you need a scheduled task, user will have to be predefined in the Activity Scope. It is not possible to specify the users before running a task. However, if you want to use a custom command, you will be able to select the users manually (can be one or multiple users). If using a custom command is what you need, please, specify whether the computers OU must be predefined or there should be an option for selecting it.

0

user will have to be predefined in the Activity Scope.

Okay this is possible, I can actually use an AD Group as Activity Scope and put the users in this group.

We need to ensure that members of this group have all computers objects that are located under a specific OU in the userWorkstations property.

1 Answer

0 votes
by (220k points)

Hello Mic,

Thank you for specifying. Have a look at the following script from our repository: https://www.adaxes.com/script-repository/add-computers-from-an-OU-to-user-workstations-s655.htm.

Related questions

0 votes
1 answer

Hello, I have a simple custom command that need to update the ProfilePath of Remote Desktop Services only if the current Profilepath starts with a specific value. I use the If ... the result is never true so the value is not updated. Thanks in advance. Ten

asked Dec 3, 2019 by tentaal (1.1k points)
0 votes
1 answer

Hi all, Am trying to convert a mailbox from a user box to a shared box in O365. Have been for the past few weeks even. The ... account the method points at - http://www.adaxes.com/sdk/?ExecuteScriptContextClass.html#executescriptcontext_getoffice365credential

asked Feb 24, 2020 by TheLexicon (160 points)
0 votes
1 answer

We are trying to get a scheduled task to run every Friday night at 10:00pm to pull the users needed to be fully deprovisioned by the custom command we have created.

asked Dec 2, 2016 by willy-wally (3.2k points)
0 votes
1 answer

I have an ADP Sync scheduled task that modifies and creates users from a csv file. I also have reports that show new users created and management history for user ... ADP Sync scheduled task so that they only run after the ADP Sync task is complete?

asked Jan 7, 2020 by barberk (60 points)
0 votes
1 answer

Hi, is there a possibility to show some custom read only text in Custom Command? Ideally on page where users fill in parameter values of given Custom Command.

asked Jan 22, 2020 by KIT (520 points)
2,733 questions
2,470 answers
6,460 comments
1,339,668 users