Tuesday, April 10, 2007

Wake-On-LAN with PowerShell

$POWEROFFEXE = "E:\poweroff.exe"

Import-Csv PCs.csv Foreach-Object { $params = (" wol -ip " + $_.Ip + " -subnet 255.255.0.0 -mac " + $_.Mac);
[diagnostics.process]::start($POWEROFFEXE, $params)
}
Reference:
Wake-On-LAN Script
Download PowerOff

No comments:

Related Titles

 
visitors since March 26 2007
©2007