Solved

Displaying Message on Remote Computer

Posted on 2004-04-19
1
377 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
ID: 10862946
''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

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

Title # Comments Views Activity
word0 challenge 4 64
advertisement module in core php 4 144
Full Screen problem when auto scale IFRAME 2 60
Regular Expression Calculator Tester 2 53
A short article about a problem I had getting the GPS LocationListener working.
A short article about problems I had with the new location API and permissions in Marshmallow
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…

919 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

19 Experts available now in Live!

Get 1:1 Help Now