Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Displaying Message on Remote Computer

Posted on 2004-04-19
1
Medium Priority
?
421 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
[X]
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
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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 …
Simple Linear Regression

636 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