Results 1 to 3 of 3

Thread: Map Network Drives with SBS_LOGIN_SCRIPT.bat using VBS?

  1. #1
    Join Date
    Jan 2006
    Posts
    115

    Map Network Drives with SBS_LOGIN_SCRIPT.bat using VBS?

    I am trying to edit the SBS_LOGIN_SCRIPT.bat and I have the below file: \\SERVER\NETLOGON\logon.vbs

    logon.vbs:
    Code:
    Set wshNetwork = CreateObject("WScript.Network")
    wshNetwork.MapNetworkDrive "h:",
    "\\SPSBS\users\" & wshNetwork.UserName
    wshNetwork.MapNetworkDrive "g:",
    "\\SPSBS\gemensam" & wshNetwork.UserName
    What am I suppose to add into the SBS_LOGIN_SCRIPT.bat to make the VB script run? I have tried calling it via a Batch file but that didnt even work. I have also tried calling it through call ...path..\login.vbs that to no avail. Can anyone please help.

  2. #2
    Join Date
    Sep 2005
    Posts
    82

    Re: Map Network Drives with SBS_LOGIN_SCRIPT.bat using VBS?

    I am actually using a little backwards from your design. I have got the .vbs script call the SBS_LOGIN_SCRIPT. And then I have to modufy the users and templates to assign my login scripts. So the last line of my login.vbs says

    \\SBSservername\sysvol\sbsdomain.company.local\scripts\SBS_LOGON_SCRIPT.bat

    I also have 2 more scripts. The above one and the one with the SBS_LOGON_SCRIPT.bat commented out. The second one makes for a faster user logon experience, after the environment is setup and stable.

  3. #3
    Join Date
    Sep 2005
    Posts
    82

    Re: Map Network Drives with SBS_LOGIN_SCRIPT.bat using VBS?

    The last lines should read as:

    follows;
    -------
    dim Shell
    set shell = createobject("wscript.shell")
    shell.run
    "\\SBSservername\sysvol\sbsdomain.company.local\scripts\SBS_LOGON_SCRIPT.bat"
    set shell = nothing
    -------

Similar Threads

  1. Windows 7 network drives with SBS 2003
    By Wali in forum Operating Systems
    Replies: 5
    Last Post: 07-01-2011, 10:47 AM
  2. cannot reconnect network drives
    By Ron1 in forum Networking & Security
    Replies: 3
    Last Post: 22-08-2009, 12:06 PM
  3. Auto Map Network Drives under SBS 2008
    By Frragrant in forum Small Business Server
    Replies: 2
    Last Post: 16-01-2009, 07:05 AM
  4. network drives don't show
    By redfilm in forum Networking & Security
    Replies: 1
    Last Post: 06-01-2009, 06:46 PM
  5. Cannot access/run EXE files on network drives.
    By nehal_serpa in forum Windows Vista Network
    Replies: 3
    Last Post: 06-12-2007, 01:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,138,048.16695 seconds with 18 queries