Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBS Assistance

Posted on 2013-12-06
3
Medium Priority
?
187 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 1200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…

715 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