0 votes

I'm trying to understand the best approach to use when developing scripts for Adaxes. In the Management console you can't see the details of an object while coding.

What I'd like to do is figure out the best way to mimic the Context of an object and possibly be able to see its contents and so on. Being able to mimic the %attrib% would be nice as well but I figured that would be replaced after developing something based on a single object.

For Context of a User I'd think a Get-ADMUser might do the trick but its also possible there are additional attributes I don't see.

Thanks in advance for your advice.

by (790 points)
0

As I learn in the Mangement Console I've noticed that $Context.LogMessage seems useful for testing and viewing output.

Would this be the recommended way of reviewing script details?

1 Answer

0 votes
by (270k points)

Hello,

If you need to output specific values (e.g. values of object properties) in your scripts, using the $Context.LogMessage method is the best way. If that is not what you are trying to achieve, please, specify the desired behavior in all the possible details with live examples.

Related questions

0 votes
1 answer

Hello, I have 2 questions. 1. We are in the process of migrating from one AD forest to a new AD Forest. During this migration user accounts will be copied to ... can test in there with out impacting production. Does our existing license cover this? thanks.

asked Nov 1, 2018 by DFassett (710 points)
0 votes
0 answers

Now that our adaxes system is in use and active I am trying to figure out how to fix 'bugs' in my scripts and develop new scripts / workflow on a live system without causing ... production? I am curious as to how other customers do this ... Thanks. - Scott W.

asked Aug 11, 2014 by hms.scott (220 points)
0 votes
1 answer

We have the following script we need fixed to run within Adaxes to add true/false value to a customattribute for use in building dynamic distribution lists. $users = ... } else { Set-Mailbox -Identity $user.Name -CustomAttribute8 "Individual contributor" } }

asked Jul 13, 2022 by willy-wally (3.2k points)
0 votes
1 answer

Hi We create different Groups when a new OU is generated. The name of the groups consist of the OU name with additional text. We would like ... value $Context.SetModifiedPropertyValue($property, $value) $Context.LogMessage($value, "Information") Thanks, Mario

asked Jul 9, 2020 by maca (100 points)
0 votes
1 answer

I have a script that i am trying to run against all users in an OU, but the script will only run against 1 user then not run again for any other users in the OU. Any thoughts on why this would happen?

asked Mar 1, 2018 by kevball2 (100 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users