Solved

VBS Assistance

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
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…
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…

708 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

12 Experts available now in Live!

Get 1:1 Help Now