Page 1 of 1

how to list available properties of $user?

Posted: Fri Nov 06, 2015 4:07 am
by rtiel1
Product, version and build: 2015 7.1.71
32 or 64 bit version of product: 64
Operating system: 8.1
32 or 64 bit OS: 64

When running a code like ....$user = $admService.OpenObject($userPath, $NULL, $NULL, 0).... etc you can get a property like $user.Name. In Powergui it's possible to run the script once and then when you type $user. you can choose between all available properties. As far as I know of this is not possible in Primalscript, or am I mistaken?


With regards,

Remco

Re: how to list available properties of $user?

Posted: Thu Nov 19, 2015 3:31 pm
by Alexander Riedel
No, PrimalScript does not work that way. We do not run a script to get a dynamic objects properties.
Script are run in their own process and for security reason we do not execute code just to get IntelliSense information.
We know other editors run code, sometimes without the user's knowledge, to provide more intellisense, but we consider that a security risk.

You can run your code in the integrated shell and examine objects there if you like though.