Solved

Displaying Message on Remote Computer

Posted on 2004-04-19
1
363 Views
Last Modified: 2011-09-20
I am using the following code to edit the registry on clients computer connected to my network.  But instead of displaying the message on the client’s computer, the echo is being performed on my computer. Please help. Below is the code that I am using to perform this operation:



Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "remotecomputer"

Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0"
strEntryName = "MaxLocksPerFile"
dwValue = 150000
objReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, strEntryName, dwValue


wscript.echo "File Lock Change is complete. Please restart Computer."
 
0
Comment
Question by:gbarrientos
1 Comment
 
LVL 5

Accepted Solution

by:
danielsonchris earned 500 total points
Comment Utility
''Here is an idea that may work, though many clients turn this the Messenger service off
'' thanks to spammers NET Sending messages to everyone.  BTW, your messenger service will also need to be started
'' to send.  I am assuming you are running an NT/2k/XP build windows system.
''To start your Messenger service you can pull up the cmd window and enter NET START Messenger

Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.Run "NET SEND " & strComputer & " File Lock Change is complete. Please restart Computer.", 1, True
Set wsh = Nothing

''Good luck!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to split this in C++ 4 76
Specific format 21 140
wordcount challenge 11 74
delphi parse string to params 3 81
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

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

17 Experts available now in Live!

Get 1:1 Help Now