mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-18 19:07:04 +02: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
|
$Count = $Table.Length
|
||||||
$StopTime = Get-Date
|
$StopTime = Get-Date
|
||||||
$TimeInterval = New-Timespan -start $StartTime -end $StopTime
|
$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
|
exit 0
|
||||||
|
@ -48,10 +48,7 @@ foreach($item in $MyMACAddresses) {
|
|||||||
$thisMAC=$array[1]
|
$thisMAC=$array[1]
|
||||||
if ($thisHost -like $Hostname) {
|
if ($thisHost -like $Hostname) {
|
||||||
Send-WOL $thisMAC
|
Send-WOL $thisMAC
|
||||||
echo ""
|
write-output "✔️ host $thisHost waked up (MAC $thisMAC)"
|
||||||
echo "OK - host $thisHost waked up (MAC $thisMAC)."
|
|
||||||
echo ""
|
|
||||||
pause
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user