Powershell debugging

Powershell debugging

Anyone know how to get debug information when running custom script?

I have a script to run when a user is disabled that, if they manage and other users, re-assigned those users to the manager of the now disabled user,
and then sends the new mamager an email. The user gets disabled OK, the process says the script ran OK, but the manager does not get changed and the email does not get sent.

Any ideas?

Mark Ashley
Weston College 
              New to ADManager Plus?

                New to ADSelfService Plus?