Re: Any creative ideas?
- From: "Richard Mueller" <rlmueller-NOSPAM@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 14:38:48 -0500
"KantKode" <KantKode@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2BA1B0E0-963F-41C8-98DD-7E9B8127F481@xxxxxxxxxxxxxxxx
OK... does anyone have ANY ideas here? (creativity appreciated)
We have a lab with 300++ computers and we need a way to locate a specific
computer (physically) preferably using WMI.
The ideal solution would be to flash the monitor off and on or somthing.
Bear in mind that different people will be logged on to some and others
will
be not in use (or locked, screensaver...) So changes to desktop,
screensaver
etc won't really get us there.
We considered ejecting the CD drive, but these boxes happen to have the
laptop style drives and that is pretty hard to spot in a lab this size
(and
false positives would be pretty numerous).
I was able to run a program on a remote machine that beeped. This worked
even if no one was logged on, but the machine must be running. My program
was saved on the remote machine, but it can also be copied to the machine
and then run. I used a batch file that called an old assembly language
program that beeped, but anything that makes noise will do. I used the
Win32_Process class. My VBScript program:
==========
Option Explicit
Dim objRemote, objProcess, strComputer
strComputer = "RemotePC"
Set objRemote = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,authenticationLevel=Pkt}!\\" _
& strComputer & "\root\cimv2")
Set objProcess = objRemote.Get("win32_process")
objProcess.Create("c:\\MyTest.bat")
===========
If MyTest.bat is not on the machine, it can be copied by the script, but
that is more work.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
.
- Prev by Date: Re: ManagementEventWatcher.Stop() fails to close connection to Win2003
- Next by Date: SWbemObjectEx: Generic failure when trying to modify MOM alert property through WMI
- Previous by thread: Memory leak in IWBemConfigRefresher::AddEnum
- Next by thread: SWbemObjectEx: Generic failure when trying to modify MOM alert property through WMI
- Index(es):
Relevant Pages
|
Loading