mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Updated the scripts
This commit is contained in:
parent
80be672828
commit
d73e0dbc30
0
Scripts/exe_info.ps1
Normal file → Executable file
0
Scripts/exe_info.ps1
Normal file → Executable file
@ -18,5 +18,5 @@ foreach($Row in $Table) {
|
||||
$Count = $Table.Length
|
||||
$StopTime = Get-Date
|
||||
$TimeInterval = New-Timespan -start $StartTime -end $StopTime
|
||||
write-host "OK - DNS cache trained with $Count domain names in $TimeInterval sec."
|
||||
write-host "✔️ DNS cache trained with $Count domain names in $TimeInterval sec."
|
||||
exit 0
|
||||
|
@ -48,10 +48,7 @@ foreach($item in $MyMACAddresses) {
|
||||
$thisMAC=$array[1]
|
||||
if ($thisHost -like $Hostname) {
|
||||
Send-WOL $thisMAC
|
||||
echo ""
|
||||
echo "OK - host $thisHost waked up (MAC $thisMAC)."
|
||||
echo ""
|
||||
pause
|
||||
write-output "✔️ host $thisHost waked up (MAC $thisMAC)"
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user