Solved

Execute a vb script on a remote machine

Posted on 2007-03-28
7
344 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
Comment Utility
        *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
Comment Utility
How can i schedule on a remote machine remotely
0
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
Comment Utility
         *If you have a domain, you would execute your script as logon or logoff script for users in AD pane.
0
Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

 
LVL 11

Author Comment

by:bsharath
Comment Utility
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
Comment Utility

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
Comment Utility
Can we do the same thing for vb scripts .vbs
0
 
LVL 15

Expert Comment

by:markpalinux
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

My previous article  (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html)detailed one possible method to get SCCM 2007 installed an…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
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…

743 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

18 Experts available now in Live!

Get 1:1 Help Now