Script mit variablen Ping für unterschiedliche Netzwerke:
$output -> Should return value "success" or "failed"
$target -> Should be the target device to ping
Beispiel:
$status = test-connection $target -count 1 -quiet
Beim Anlegen des Scriptes muss eine Input Variable 'AEMTarget' angelegt werden.
--- Start Script ---
$target = $env:AEMTarget
$output = "output=" #AEM component output data
$status = test-connection $target -count 1 -quiet #Connection test to target
If ($status -ne "True") {
$output += "Failure" #Connection test failure
} ELSE {
$output += "Success" #Connection test success
}
If($output.Length -ge 8) { #AEM format for output data per documentation. Verifies data is added to $output during the script
Write-Host "<-Start Result->"
Write-Host $output
Write-Host "<-End Result->"
exit 1
}
--- End Script ---
Script: variabler Ping für unterschiedliche Netzwerke
Return to “HowTo's von User für User”
Jump to
- Willkommen im Panda Security Forum
- ↳ General Board
- ↳ Forum Regeln
- ↳ Bitte lesen
- Business Produkte
- ↳ Panda Admin Secure (EOL)
- ↳ Panda Business Secure - Lösungen und FAQ´s
- ↳ Panda Business Secure - Fehler
- ↳ Panda Business Secure - Archive Issues
- ↳ Adaptive Defense / Panda Endpoint Protection
- ↳ Adaptive Defense / Panda Endpoint Protection - Lösungen und FAQ´s
- ↳ Adaptive Defense / Panda Endpoint Protection - Fehler
- ↳ Aether MacOS FAQ´s
- ↳ Adaptive Defense / Panda Endpoint Protection - Archive Issues
- ↳ Systems Management
- ↳ Panda Cloud Systems Management - Lösungen und FAQ´s
- ↳ Panda Cloud Systems Management - Fehler
- ↳ HowTo's von User für User
- ↳ SNMP Monitore
- ↳ Panda Cloud Systems Management - Archive Issues
- ↳ Panda Cloud Cleaner Monitor
- ↳ PCCM - Lösungen und FAQ´s
- ↳ PCCM - Fehler
- ↳ PCCM - Archive Issues
- Consumer Produkte
- ↳ Panda AntiVirus Free
- ↳ Panda Cloud Antivirus Free Edition - Lösungen und How To´s
- ↳ Panda Cloud Antivirus Free Editon - Fehler
- ↳ Panda Gold Protection
- ↳ Panda Gold Protection - Lösungen und FAQ´s
- ↳ Panda Gold Protection - Fehler
- ↳ Panda Gold Protection - Archive Issues
- ↳ Panda Mobile Security
- ↳ Panda Mobile Security - Lösungen und FAQ´s
- ↳ Panda Mobile Security - Fehler
- ↳ Panda Mobile Security - Archive Issues
- ↳ Consumer 2016 Produkte
- ↳ Consumer 2016 - Lösungen und FAQ´s
- ↳ Consumer 2016 - Fehler
- ↳ Consumer 2016 - Archive Issues
- ↳ Consumer 2015 Produkte
- ↳ Consumer 2015 - Lösungen und FAQ´s
- ↳ Consumer 2015 - Fehler
- ↳ Consumer 2015 - Archive Issues
- ↳ Consumer 2014 Produkte
- ↳ Consumer 2014 - Lösungen und FAQ´s
- ↳ Consumer 2014 - Fehler
- ↳ Consumer 2014 - Archive Issues
- ↳ Consumer 2013 Produkte
- ↳ Consumer 2013 - Lösungen und FAQ´s
- ↳ Consumer 2013 - Fehler
- ↳ Consumer 2013 - Archive Issues
- ↳ Consumer 2012 Produkte
- ↳ Consumer 2012 - Lösungen und FAQ´s
- ↳ Consumer 2012 - Fehler
- ↳ Consumer 2012 - Archive Issues
- Panda GateDefender eSeries
- ↳ GateDefender eSeries - Lösungen und FAQ´s
- ↳ GateDefender eSeries - Fehler
- ↳ GateDefender eSeries - Archive Issues
- Panda Tools
- ↳ Data Collection Tools
- ↳ Disinfection Tools
- ↳ Installer und Uninstaller
- Sicherheitsinformationen
- ↳ Schwierigkeiten bei der Desinfizierung von Viren
- ↳ Virus - Archive Issues