#92176 - 2003-06-19 02:22 PM
Re: KiXforms - Active Directory Browser
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
This routine is interesting ...
code:
If Exist("%WINDIR%\System32\dsuiext.dll") $imgList.Images.Add("dsuiext.dll;1") $c=64 $imgList.Images.Add("dsuiext.dll;7") $g=65 $imgList.Images.Add("dsuiext.dll;12") $u=66 $imgList.Images.Add("dsuiext.dll;13") $o=67 $imgList.Images.Add("dsquery.dll;0") $frmMain.Icon = $imgList.Images(68) Else $c=53 $g=35 $u=34 $o=50 EndIf
And I already know, that Chris knows, that as soon as the next batch of icons get added to the library, that this code will not work as expected. Going to add something in the next build that will fix this situation forever. The ImageList.Images.Add() function will return the index number of the added icon, so the above code becomes ...
code:
If Exist("%WINDIR%\System32\dsuiext.dll") $c = $imgList.Images.Add("dsuiext.dll;1") $g = $imgList.Images.Add("dsuiext.dll;7") $u = $imgList.Images.Add("dsuiext.dll;12") $o = $imgList.Images.Add("dsuiext.dll;13") $f = $imgList.Images.Add("dsquery.dll;0") $frmMain.Icon = $imgList.Images($f) Else $c=53 $g=35 $u=34 $o=50 EndIf
-Shawn [ 19. June 2003, 14:23: Message edited by: Shawn ]
|
Top
|
|
|
|
#92177 - 2003-06-20 06:10 PM
Re: KiXforms - Active Directory Browser
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Update to script to fix minor issues. - Status label would not display the proper amount of objects if the tab was changed while enumerating.
- View button now displays the correct view icon for the currently selected tab.
Shawn, thanks for updating the next version with the Images.Add index. If you didn't want to make that change, however, one could aways do this...
If Exist("%WINDIR%\System32\dsuiext.dll") $imgList.Images.Add("dsuiext.dll;1") $c=$imgList.Images.Count-1 $imgList.Images.Add("dsuiext.dll;7") $g=$imgList.Images.Count-1 $imgList.Images.Add("dsuiext.dll;12") $u=$imgList.Images.Count-1 $imgList.Images.Add("dsuiext.dll;13") $o=$imgList.Images.Count-1 $imgList.Images.Add("dsquery.dll;0") $f=$imgList.Images.Count-1 $frmMain.Icon = $imgList.Images($f) Else $c=53 $g=35 $u=34 $o=50 EndIf
As always, I leave the decision to you.
|
Top
|
|
|
|
#92179 - 2003-06-20 07:22 PM
Re: KiXforms - Active Directory Browser
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Chris,
Looks like we may have an issue here..
I have 12 kdyer computer accounts (RIS).
A couple of weeks ago, corporate reduced the number of Domain Admins from 37 to 8. However, I have elevated privaleges to delete, reset, edit scripts, etc. Noticed in your script, I try to delete one of the RIS accounts and the delete option is not available.
I can go into AD Users and computers and do this fine.
Kent
|
Top
|
|
|
|
#92181 - 2003-06-20 08:54 PM
Re: KiXforms - Active Directory Browser
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I think this is so cool.. It should not matter what the application is, there should be no issue is deleting an object, resetting password, etc.
Adding those pieces to your application would be pretty cool too. I know that Ben - http://www.rgcweb.org/kix/ has a pretty extensive user management tool as well.
Kent
|
Top
|
|
|
|
#92182 - 2003-06-20 09:03 PM
Re: KiXforms - Active Directory Browser
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Well, to be honest you got me thinking and I may have come up with a few things to make it a little more useful than AD Users & Computers.
For example...
I can check if an account is locked and display a different icon for that account. That way you have a visual indication of accounts that are locked. You could then quickly (maybe even from a context menu) identify and unlock it.
I've already (in my test script, not the version listed here) updated the user icons to display a different icon for disabled accounts and locked accounts.
So... I guess you've talked me into some further development. I'll work on it as I get the time. In the meantime, think about and post ideas on how to make it better.
|
Top
|
|
|
|
#92187 - 2004-12-09 10:02 AM
Re: KiXforms - Active Directory Browser
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Has any of the Dust settled yet Chris
|
Top
|
|
|
|
#92188 - 2005-05-05 05:38 PM
Re: KiXforms - Active Directory Browser
|
maciep
Korg Regular
Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
|
This could be a start for anyone that's willing to run with it...
Split Container and AD
|
Top
|
|
|
|
#172463 - 2007-01-06 02:51 PM
Re: KiXforms - Active Directory Browser
[Re: Chris S.]
|
Shaba1
Fresh Scripter
Registered: 2005-08-20
Posts: 44
|
I know this is and old post chris but I wanted to ask you some questions once I read thru all 4 pages of it. And I could not find another way of adding it to my subscribed threads list
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 382 anonymous users online.
|
|
|