Results 1 to 2 of 2

Thread: VBScript Logon script

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    socal
    Posts
    74

    VBScript Logon script

    Hi all,

    I am rewriting my login scripts with VBScript, here is what I am trying to do,

    I have one "control file" that everyone will get called: logon.vbs

    it will have "rules"

    example:
    if ismember("some group") then
    on error resume next
    objshell.run "/subvbs/subdept.vbs"


    and then, a script called "subdept.vbs (one for every dept or group)

    so the logon.vbs could / will have about 50 or so of these rules, and each sub script will have rules like so:

    'app name
    if ismember("some group here") then
    on error resume next
    objNetwork.MapNetworkDrive "n:" , "\\server\share"
    if err.number <> 0 then
    on error goto 0
    objNetwork.RemoveNetworkDrive "n:"
    objNetwork.MapNetworkDrive "n:" , "\\server\share"
    end if
    on error goto 0
    end if


    and so on where printer and such will also be added, my question is this:

    i would like to have a 'header" like file that when a subscript is run a process and gets all the drive mappings from, basicly i dont want to hard code 50 scripts. i want a "config file" al la vb.net config.xml file.

    that way if a server or share name changes i can change it in one place.


    any ideas?


    -Nex6
    Last edited by nex6; Sep 30th, 2005 at 11:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width