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
just running on the local computer.
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.