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
Solved

Execute a vb script on a remote machine

Posted on 2007-03-28
7
348 Views
Last Modified: 2010-03-05
Hi,

I have a vb script which tells if a machine is DHCP enabled or not i need to run this script on remote machines.Pstool is useful but do not know if it is possible.

I need pstool to collect the machine name from the file where it needs to execte abc.vbs file.

Regards
Sharath
0
Comment
Question by:bsharath
  • 3
  • 2
  • 2
7 Comments
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 18809122
        *You would schedule the script in "scheduled tasks" if you like.
         *Is this Professional Service Tool you mean wit pstool? If yes link below is the offical forum and you may find many solutions if you join and check.
http://mobile-files.com/forum/forumdisplay.php?f=126
0
 
LVL 11

Author Comment

by:bsharath
ID: 18809270
How can i schedule on a remote machine remotely
0
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 18810972
         *If you have a domain, you would execute your script as logon or logoff script for users in AD pane.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 11

Author Comment

by:bsharath
ID: 18813155
Yes i have a domain but there is a output which is required this script shows a window on the screen if it is a DHCP or not.
0
 
LVL 15

Accepted Solution

by:
markpalinux earned 500 total points
ID: 18813351

I use
psexec \\machinename -u domain\admin -p passwword -d -f -c batchforremote.cmd

then batchforremote.cmd would include
copy /y \\server\share1 myvbscript.vbs
cscript myvbscript.vbs > myvbscript-results.txt
copy myvbscript-results.txt \\server\share2\%COMPUTERNAME%.txt

as you can see in the batchforremote.cmd file the last file copy uses the embeeded %COMPUTERNAME% when it copies the file to the network.

I think you may also be able to run a WMI script to get what you are looking for, which would work remotely.

Hope this helps,
Mark
0
 
LVL 11

Author Comment

by:bsharath
ID: 18813625
Can we do the same thing for vb scripts .vbs
0
 
LVL 15

Expert Comment

by:markpalinux
ID: 18815539
If it is a command line vb script compiled to an exe, then sure then you would just use file.exe > %computername%.txt adn then copy it to the network.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
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…
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…
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…

791 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