[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Displaying Message on Remote Computer

Posted on 2004-04-19
1
Medium Priority
?
429 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Loops Section Overview

829 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