Re: Script for Remote Wake on Lan
- From: Trevor Sullivan <pcgeeknosp4m86@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 16:48:44 -0600
Just do:
NewMac = replace(OldMac, "-", "")
That will remove the dashes.
Also, instead of using a command-line utility to do Wake On LAN, consider using this free, scriptable component I found a while ago:
http://www.depicus.com/wake-on-lan/wake-on-lan-com.aspx
Hope this helps.
----------------
Trevor Sullivan
Systems Engineer
Wayne Jordan wrote:
We use a product for managed services called Kaseya and I can run custom scripts for almost any task I need, well if I were better at scripting I could :-). My situation is I need to be able to run a script that will execute the wol.exe /m:MacAddress. The script would be executed from a server inside the lan. The mac address is stored in kaseya which i can grab using a variable #vMachine.MacAddr#. Unfortunately the way it is formatted "00-00-00-00-00" means i need to strip out the "-" before executing the script. I will need to replace the variable with the actual mac address before execution. I hope someone can help me or lead me in the right direction. Thanks in advance for your help..
- Prev by Date: Re: How to find if a disk is "BASIC" or "DYNAMIC" via WMI
- Next by Date: Re: WSUS Aproved Updates - [WP]
- Previous by thread: Re: Script for Remote Wake on Lan
- Next by thread: Re: What about Deleting Sub-folders/
- Index(es):
Relevant Pages
|