Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Domain Account Selection

2 replies to this topic

Stefan Secker

Stefan Secker
  • Members
  • 46 posts

Posted 06 August 2002 - 12:50

Hi there,

my setup needs a domain account information (in
detail domain name;user name; password).
To ask the user for this i could of course create a
custom dialog containing edit fields, but i want to
use a selection drop down box that already shows
valid accounts. ???

Is there any standard dialog for this ?
Is there a way to call a Windows DLL to
bring the usual account selection dialog up ?

Any info will be helpful. TIA!



  • Members
  • 23 posts

Posted 09 August 2002 - 04:34

Use the following vbscript code to list all users in a domain -

 sub PullAllUsers(strDomain)
   Dim Computer
   Dim User

   Set Computer = GetObject("WinNT://" & strDomain)
   Computer.Filter = Array("User")
   For Each User in Computer
     Response.Write User.Name
 End Sub

Stefan Secker

Stefan Secker
  • Members
  • 46 posts

Posted 09 August 2002 - 13:19

Thanx for the reply gunavelu! :D

As i didn't find any other possiblity yet, i'll use
the VBS code. Can somebody now tell me how
to add the resulting list to a combo box on a

I have tried to change MSI tables during the setup
process but always failed to get it running. ???

TIA! Cheers