Solved

VBS Assistance

Posted on 2013-12-06
3
179 Views
Last Modified: 2013-12-13
I have inherited a network that was supported by an outside firm.  They had setup a script that would check for and install if not present a software management client.  The issue is the company no longer supports our company and I have their remnant VB script that I need to modify.  Presently it pulls from a variable /g=ffs.  Where is a batch file mapping shared drives for the users.  I need to create automatically of their home drive at creation of their accounts.  I had to kill the install of the clients to clean off the access into the system.  I need some assistance in the VS Script which was set as a Login script in a GPO that is disabled.  I would like to maintain the login bat file mapping the drives as well as creation of a home drive and I have been noticing that recently the system will no longer create the home directory automatically and that on occasion the mapped drives are not getting created for new users.  I am weak in my scripting and I need help.
agentinstall.vbs
0
Comment
Question by:vlamer
  • 2
3 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 300 total points
ID: 39702829
Hi, looking at the script, it does nothing more than install the agent.  It does not map any driver, nor set the home directory.  You are going to need to start from scratch and not use this script at all, if you don't need the agent.

For creating the home drive, you should be using the Active Directory profile tab of each user.

To map drives, you should be using Group Policy Preferences if you have a Server 2008 DC.  If not, you can use scripts to map drives based on group memberships in Active Directory.  As an example, have a look at the script I posted here some time ago:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27222318.html

Regards,

Rob.
0
 

Author Closing Comment

by:vlamer
ID: 39717927
Fast and succinct.  Great job Rob
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 39717938
No problem. Thanks for the grade.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

770 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