Quote:
> I need to remotely eject a CD but WMI does not support an eject method. Is
> there a mechanism for this? (code would be much appreciated....)
Hi
You could try to combine wizmo.exe (eject CD) with psexec.exe (for the remote
part). Psexec.exe can also automatically copy Wizmo.exe over to the remote
computer if you want (or you can pre-copy it yourself to reduce launch time).
Both utilities are free.
More details about psexec.exe here:
From: Torgeir Bakken (MVP)
Subject: Re: Automating MS update installs
Newsgroups: microsoft.public.scripting.wsh
Date: 2002-10-04 17:44:03 PST
http://groups.google.com/groups?selm=3D9E348C.E51CF526%40hydro.com
Wizmo
http://grc.com/wizmo/wizmo.htm
From the docs:
DRIVE OPEN (EJECT) and CLOSE (LOAD)
open opens the system's default CDROM drive tray.
Example: wizmo open
close closes the system's default CDROM drive tray.
Example: wizmo close
open={drive:} open or eject specific removable drive media.
On systems with multiple CDROM or other removable drives (e.g. Iomega Zip and
Jaz) this opens or ejects the media from the specified drive.
Example: wizmo open=w:
close={drive:} close or load specific removable drive media.
(NT/2000/XP only) On systems with multiple CDROM or other removable drives
(e.g.
Iomega Zip and Jaz) this closes or loads the media on the specified drive. This
function is not available under Windows 95/98/ME. On those systems it will
behave like the "close" function above.
Example: wizmo close=r:
Anoter open/close CD utility:
Open/Close CD v1.20
http://www.rjlsoftware.com/software/utility/open_cd/
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter