Nt Domain Logon Script using VBScript/WSH 
Author Message
 Nt Domain Logon Script using VBScript/WSH

I am researching using WSH / VBScript as our primary domain logon script.  I
admit I have just started looking at this product but I can't seem to find
any reference in the documentation as how to determine NT Domain group
membership.  Does anyone have some experience using this as a domain logon
script?  I would need to be able to map drives, etc based on group
membership.  Also, is anything special required to run the .vbs script?  Can
the script be called directly by the users profile or does a batch file have
to call it?

All help is appreciated...

Thanks,

Chad Florian
Tropicana System Administration



Tue, 19 Jun 2001 03:00:00 GMT  
 Nt Domain Logon Script using VBScript/WSH

Head on over to my site. There's everything you need to get up and running in the downloads section. Then go to the script search page in the script repository. Type logon* in the query field and you should get about 5 example logon scripts that you can look at and download. Lots of stuff out there.

Clarence
Check it out
http://cwashington.netreach.net

Win32 bit scripting. Everything you need to get up and running,
A script repository containing almost 100 sample scripts,
downloads, reference files, and technical support via an
online discussion forum.

(Pursuant to US Code, Title 47, Chapter 5, Subchapter II, 227, any and all
unsolicited commercial E-mail sent to this address is subject to a download
and archival fee in the amount of $1000 US.  E-mailing denotes acceptance of
these terms.)

I am researching using WSH / VBScript as our primary domain logon script.  I
admit I have just started looking at this product but I can't seem to find
any reference in the documentation as how to determine NT Domain group
membership.  Does anyone have some experience using this as a domain logon
script?  I would need to be able to map drives, etc based on group
membership.  Also, is anything special required to run the .vbs script?  Can
the script be called directly by the users profile or does a batch file have
to call it?

All help is appreciated...

Thanks,

Chad Florian
Tropicana System Administration



Tue, 19 Jun 2001 03:00:00 GMT  
 Nt Domain Logon Script using VBScript/WSH
Hi,
You also need to install Active Directory Service Interface (ADSI) on the
workstations.
Then you can do this in your logon script...
adsPath = "WinNT://" & strDomain & "/" & strUser
set adsObj = GetObject(adsPath)
For Each Prop In adsobj.groups
  Select Case Prop.Name
   Case "Domain Admins"
    Call Administrators()
   Case "Group1"
    Call Group1()
   Case "Group2"
    Call Group2()
   'etc
  End Select
sMsg = sMsg & Prop.Name & strLF
Next 'Prop

Get ADSI from here...
http://www.microsoft.com/ntserver/nts/downloads/other/ADSI2/default.asp

Regards,
Ian
WSH FAQ http://wsh.glazier.co.nz/frame.htm

Quote:

>I am researching using WSH / VBScript as our primary domain logon script.
I
>admit I have just started looking at this product but I can't seem to find
>any reference in the documentation as how to determine NT Domain group
>membership.  Does anyone have some experience using this as a domain logon
>script?  I would need to be able to map drives, etc based on group
>membership.  Also, is anything special required to run the .vbs script?
Can
>the script be called directly by the users profile or does a batch file
have
>to call it?

>All help is appreciated...

>Thanks,

>Chad Florian
>Tropicana System Administration




Wed, 20 Jun 2001 03:00:00 GMT  
 Nt Domain Logon Script using VBScript/WSH

Thanks for the info.  I had perused your site but did not locate the sample script unitl your post.  Please foegive my ignorance in this matter but I have a few more questions.  Does the sample script at http://cwashington.netreach.net/downloads/scripts/vbscript/map.zip require ADSI?  Would this need to be installed along with WSH on each client?  I went to microsofts site and found ADSI.  

We are currently using kixstart at my site but are limited to the 16 bit version because the 32 bit version gave us too much trouble on some older clients.  I like the functionality and flexibility of VBS/WSH much better.  

Any and all help is appreciated.

Thanks,
Chad

    Head on over to my site. There's everything you need to get up and running in the downloads section. Then go to the script search page in the script repository. Type logon* in the query field and you should get about 5 example logon scripts that you can look at and download. Lots of stuff out there.

    Clarence
    Check it out
    http://cwashington.netreach.net

    Win32 bit scripting. Everything you need to get up and running,
    A script repository containing almost 100 sample scripts,
    downloads, reference files, and technical support via an
    online discussion forum.

    (Pursuant to US Code, Title 47, Chapter 5, Subchapter II, 227, any and all
    unsolicited commercial E-mail sent to this address is subject to a download
    and archival fee in the amount of $1000 US.  E-mailing denotes acceptance of
    these terms.)


    I am researching using WSH / VBScript as our primary domain logon script.  I
    admit I have just started looking at this product but I can't seem to find
    any reference in the documentation as how to determine NT Domain group
    membership.  Does anyone have some experience using this as a domain logon
    script?  I would need to be able to map drives, etc based on group
    membership.  Also, is anything special required to run the .vbs script?  Can
    the script be called directly by the users profile or does a batch file have
    to call it?

    All help is appreciated...

    Thanks,

    Chad Florian
    Tropicana System Administration



Wed, 20 Jun 2001 03:00:00 GMT  
 Nt Domain Logon Script using VBScript/WSH

No. That particular script does not need adsi or any other external control. You will need adsi if you want to parse group membership and perform action based on the result.  And yes you would need to install it on every client. This is easily done via a command line script though.

Clarence

Check it out..
Http://cwashington.netreach.net

On this site you will find resources for all of your scripting needs.
Everything you need to get up and running. Over 100 Sample
Scripts, reference materials, and technical support via an
online discussion lounge.

[ Win32Scripting... automate!! ]

Thanks for the info.  I had perused your site but did not locate the sample script unitl your post.  Please foegive my ignorance in this matter but I have a few more questions.  Does the sample script at http://cwashington.netreach.net/downloads/scripts/vbscript/map.zip require ADSI?  Would this need to be installed along with WSH on each client?  I went to microsofts site and found ADSI.  

We are currently using kixstart at my site but are limited to the 16 bit version because the 32 bit version gave us too much trouble on some older clients.  I like the functionality and flexibility of VBS/WSH much better.  

Any and all help is appreciated.

Thanks,
Chad

  Head on over to my site. There's everything you need to get up and running in the downloads section. Then go to the script search page in the script repository. Type logon* in the query field and you should get about 5 example logon scripts that you can look at and download. Lots of stuff out there.

  Clarence
  Check it out
  http://cwashington.netreach.net

  Win32 bit scripting. Everything you need to get up and running,
  A script repository containing almost 100 sample scripts,
  downloads, reference files, and technical support via an
  online discussion forum.

  (Pursuant to US Code, Title 47, Chapter 5, Subchapter II, 227, any and all
  unsolicited commercial E-mail sent to this address is subject to a download
  and archival fee in the amount of $1000 US.  E-mailing denotes acceptance of
  these terms.)


  I am researching using WSH / VBScript as our primary domain logon script.  I
  admit I have just started looking at this product but I can't seem to find
  any reference in the documentation as how to determine NT Domain group
  membership.  Does anyone have some experience using this as a domain logon
  script?  I would need to be able to map drives, etc based on group
  membership.  Also, is anything special required to run the .vbs script?  Can
  the script be called directly by the users profile or does a batch file have
  to call it?

  All help is appreciated...

  Thanks,

  Chad Florian
  Tropicana System Administration



Wed, 20 Jun 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. NT Logon Script using WSH / VBScript

2. NT Logon Scripting using WSH

3. NT 40 Domain Logon Scripts

4. How can I get logon server name and IP address from logon script using wsh

5. WSH Script in NT Logon Script

6. how synchronize NT Domain using wsh ?

7. Running WSH logon Scripts from NT4 Domain controllers

8. Run WSH logon script before NT shell starts?

9. deploying WSH 5.6 with NT logon script

10. WSH NT Logon Scripting

11. virus update via logon to a NT domain

12. NT Domain Logon

 

 
Powered by phpBB® Forum Software