Solved

Windows Server 2003 Remote Call

Posted on 2004-08-10
3
129 Views
Last Modified: 2011-09-20
I am writing a vbscript to create user accounts, create exchange mailboxes, create shared folders, and set shared folders permissions.  The problem I am running into is an environment problem.

3 Servers
1 - Windows Domain Controler
1 -  Exchange Server
1- File Server

In order for the vbscript to work, I had to break up the vbscript into 3.  One to run on each server for it's portion of the project.  Thus, the file server runs the vbscript portion of the code to create folders.  Exchange server runs the vbscript portion that creates the mailboxes. The DC, runs the portion of the code that creates user accounts.

If I stand at each server, and run the vbscript, it works.  But, that is not a functional End-Product solution.  I need to be able to launch the vbscripts at each server from the User Interface that I have created for our Network Admin.  How do I execute each script remotely, but the script needs to run as local?

Help
0
Comment
Question by:david_glidewell
3 Comments
 

Author Comment

by:david_glidewell
ID: 11768037
Or,

Is it possible to convert the vbscript to pure vb?  And make the exe run the code internally vs. calling vbscripts?
0
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
ID: 11768682
Use this tool to execute files remotely:
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml
0
 
LVL 76

Expert Comment

by:David Lee
ID: 11769201
Yes, you can almost certainly convert the code to pure VB and run it internally.  I've written pure VB code that makes accounts and mailboxes in AD, and making folders is easily done.  Also, unless there's a compelling reason why the code needs to run on the servers, it's no problem to run that same code from a workstation somewhere on the network.  It's slower, but very doable.  For that matter, you can run the scripts from a workstation too.  Personally, I'd do it in pure VB.  I think it gives so much more flexibility.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

861 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

24 Experts available now in Live!

Get 1:1 Help Now