Requests for Automation

Don't run procedure on Domain Controller

I'm looking for a way to NOT run a procedure on a domain controller. I want to reset local admin passwords (I have that script) but I don't want to run on a DC because that changes the AD Administrator. VSA in the Views can Identify Domain Controllers, but I can't see a way to use that in a procedure.

This request was archived: Suggestion Provided

Gravatar for William
William about 1 year ago

just running on the local computer.

Gravatar for Kaseya Automation Team
Kaseya Automation Team 8 months ago

You can modify your procedure so it does a testfile() against a particular file that only exists within a domain controller. If it finds it, dont run the rest of the commands. 

This is possible, you just need to find a way to identify if something is a Domain Controller.


  • Request Archived
  • 0 Votes
  • Open for over 1 year
  • Created by John Rutkowski