[ADSI] getting COM properties .

Skip to first unread message

/\/\o\/\/ [MVP]

Sep 29, 2006, 12:36:56 PM9/29/06
An other example , getting AccountDisabled :

how can I do this using the new wrapper ?

(as I was thinking about getting this directly as a first thing that would
make it less bad, but again I was dissapointed, please show I did miss
something here !! .)

I discussed how I did like this, and I happy I was with it (best of Both
worlds) here :


PS C:\PowerShell>
PS C:\PowerShell>
Exception calling "get" with "1" argument(s): "The directory property cannot
be found in the cache
At line:1 char:49
+ ([adsi]'LDAP://CN=FooMoved,DC=mow,DC=local').get( <<<< 'AccountDisabled')
PS C:\PowerShell>
PS C:\PowerShell> # Old way works ofcourse :
PS C:\PowerShell>
PS C:\PowerShell>

After this experiense I had good hope (Note I still like the first (RC1)
solution more as I have Tabcompletion on it),
and MoveHere does ofcourse not show up in tabcompletion, without that the
gain is minimal.

# Old



# New



Hence again I'm not convinced, this is good and the get() is more limeted
as the InvokeGet it seems, so admins coming from VbScript think they have to
use accountcontrol bits

Greetings /\/\o\/\/

Reply all
Reply to author
0 new messages