WSS 3.0 - Button to run VBScript and Map Network Drives

Posted on 2012-08-31
Last Modified: 2014-05-25
Hi all,

Having some issues with a setting up a button to run a client side VBScript in WSS 3.0.
We have a rather large Windows network, when a user logs in, a script runs which is pushed through group policy and maps all of the network drives for each user.

Sometimes the aforementioned script fails to run, leaving the user without any network drives or resources.
I am trying to setup a button on our WSS 3.0 intranet, that when pressed will either run the login script, or run a script that will map all of the network drives.

I have tried numerous things, but could only manage to get one drive to map, when in fact there are 8 that need mapping.

I have added a 'Content Editor Web Part' added a button and edited the source code in an attempt to get this working, but to no avail.

I have now hit a dead end, starting from scratch and needing your help.

Does anyone know how this can be achieved?

We are running both Windows XP and Windows 7 machines if that makes a difference.


Question by:Nemins
    1 Comment
    LVL 65

    Accepted Solution

    Hi, I'm not an expert in web development or web security, but I have tried in the past to get links from my Intranet to run things under the user context of the desktop session, but it doesn't appear to work.  I believe this is just part of the security model built in to Internet Explorer.

    You can try adding your site as a Trusted Site, disabling IE Protected Mode, and using Windows Authentication on your web page, but I still don't think it will work.

    I had to settle for creating a hyperlink to a network folder, and having users double click the required file.



    Featured Post

    Free book by J.Peter Bruzzese, Microsoft MVP

    Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

    Join & Write a Comment

    The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
    Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now