0 votes

Hello,

I'm using this script as part of a deprovisioning process https://www.adaxes.com/script-repository/disable-all-computers-managed-by-a-user-s29.htm

I'm using it in a Business Rule After disabling a user account.

The script executes with no errors, but the computer managed by the user remains enabled.

by (650 points)
0

Hello,

As per our check, the script works exactly as intended. Could you, please, specify whether you have Adaxes service installed in the very same domain that is managed by the service and where the computers and the user are located?

0

I have the Adaxes service installed on the same domain as the user and computer.

The User is in a 'Users' OU and the computer is in 'All Computers' OU, like so:

  • CORP.net
    • Users
      • User1
    • All Computers
      • Computer1

Computer1 is managed by User1, however when User1 is disabled Computer1 remains enabled.

It's my understanding that the script should disable Computer1?

0

Hello,

Yes, your understanding is correct. Can you see both the user and the computer in Adaxes Administration Console? Did you make sure that the Business Rule executing the script is effective for the user? For details on how to check that, have a look at the following help article: https://www.adaxes.com/help/?ManageBusinessRules.ViewBusinessRulesEffectiveForADObjects.html. Additionally, for troubleshooting purposes, please, do the following:

  1. Launch Adaxes Administration Console.
  2. In the Console Tree, expand your service node.
  3. Right-click Active Directory and then click Find. image.png
  4. Activate the LDAP Search tab.
  5. In the LDAP filter field, enter the following: managedBy=<userDN>, where <userDN> is the distinguished name (DN) of the user for which the script was executed. For information on how to get the DN, see https://adaxes.com/sdk/HowDoI.GetDnOfObject. image.png
  6. Click Search. image.png
  7. Is the computer that should be disabled displayed in search results?
0

Hello,

I have confirmed the business rule is effective for the user. I have the script as an action set on a larger business rule.

All other actions for the business rule work except for the computer disable script.

I have done an LDAP search and confirmed the computer is showing up as a managed object for the user.

Thanks Ben

0

Hello,

Thank you for the provided details. For further troubleshooting, please, do the following:

  • Post here or send us (support[at]adaxes.com) a screenshot of the Business Rule that executes the script.
  • Re-disable the user and post here or send us (support[at]adaxes.com) a full screenshot of the Execution log that will be displayed.

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Is it possible, using a business rule, to reassign a user's direct reports to their manager when they get disabled? For example, User B reports up to User A. User B gets disabled and all of their direct reports automatically get assigned to User A. Thanks

asked 3 days ago by bavery (650 points)
0 votes
1 answer

I'd like to be able to either send an email report or export a CSV of all of the business rules carried out when a user is disabled. This would be ... Management Activity section but this includes things that weren't part of the disable operation. Thanks

asked Feb 19 by bavery (650 points)
0 votes
1 answer

We are using the SeeAlso attribute to store who is responsible for specific accounts. We do not wish to use the Manager field, because the Manager/Direct Report structure is ... to, for example, extende the expiration date of an account. Is that possible?

asked Jan 28 by manuel.galli (510 points)
0 votes
1 answer

I would like to send an email notification when a user, who is a group owner, account is disabled.

asked Aug 18, 2015 by Infounlim (2.3k points)
0 votes
1 answer

Adaxes really needs this i.e. "Here's this list of 20 users can you add them to the Marketing group" - right now you have to do them one at a time which is a real kludge. I ... there's any timescale please? We're on 2013.2 if I'm just not seeing it. Thanks :)

asked Jan 30, 2014 by hutchingsp (1.9k points)
2,221 questions
1,983 answers
5,447 comments
6,566 users