Some debugging tips for ActiveRoles Server 6.7

It must be admitted that ARS lacks for good scripting environment. Many users deservedly blame ARS for this and ask to integrate PowerGUI as main ARS scripting environment.

Sometimes script simply doesn't work and we don't know how to check what's wrong.

So here I want to offer some tips which were useful for me.

First of all we can enable debugging. Debug Log can show every call and variable assignments.

Also we can write output into file or event log. For example, we can add something like $SomeValue|Out-File C:\test.txt to see if the script was started.

You can check event log and if there were some errors in it, you will see related error events.