Solved

VBS Assistance

Posted on 2013-12-06
3
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

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…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

630 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