Solved

VBS Assistance

Posted on 2013-12-06
3
181 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
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…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

680 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