Commit Graph

20 Commits

Author SHA1 Message Date
Asif Bacchus cccd7ca3d6 feature(wakeup): only display connection err on last iteration 2021-09-06 16:08:33 -06:00
Asif Bacchus 140edc1cb1 fix(wakeup): fix trailing countdown error 2021-09-06 16:04:36 -06:00
Asif Bacchus 56a910d714 refactor(wakeup): use verbose output stream
- move connection check error details to verbose stream
2021-09-06 16:04:14 -06:00
Asif Bacchus fc3a39b0b9 refactor(wakeup): use cmdletbinding, change var db name 2021-09-06 16:03:34 -06:00
Asif Bacchus 47c313a26a refactor(wakeup): rewrite connectivity check timer loop
- use do loop to run at least one check
- check total time vs timeout in trailing while condition
2021-09-06 15:45:06 -06:00
Asif Bacchus 5332818990 feature(wakeup): run multiple connectivity checks up to timeout 2021-09-06 15:38:36 -06:00
Asif Bacchus 0119923ed7 refactor(wakeup): rework params, conn-check multiple err msg
- rename connectivity check parameters for consistency
- allow multiple errors to be reported for connectivity check for
troubleshooting
2021-09-06 15:16:21 -06:00
Asif Bacchus 4a8fff4384 feature(wakeup): allow specifying multiple computers and patterns
- change TargetComputer to array of strings each matched via RegEx
2021-09-06 01:19:13 -06:00
Asif Bacchus 0ce3ebdb35 feature(wakeup): add basic connectivity test
- add parameters to control or skip connectivity test
- basic connectivity test logic and execution
- simple connectivity error handling and reporting
2021-09-05 23:56:46 -06:00
Asif Bacchus 130e346319 refactor(wakeup): change var names
- change targetComputer var name to PascalCase for consistency
- parameterize database location, change variable name to PascalCase
2021-09-05 23:55:19 -06:00
Asif Bacchus 5003661a63 refactor(wakeup): move exit to function, use constants
- move graceful exit to function to DRY code
- use constant for wol module name
2021-09-05 23:53:33 -06:00
Asif Bacchus 043bca95a2 fix(db): use invalid tld for example 2021-09-05 23:22:46 -06:00
Asif Bacchus 6bd82a2a91 chore(git): ignore test databases 2021-09-05 22:48:37 -06:00
Asif Bacchus 2a21a23462 feature(wakeup): exit if no matching computers found 2021-09-05 22:48:20 -06:00
Asif Bacchus e5bc1f76df struct(wakeup): add params for connectivity testing 2021-09-05 18:33:46 -06:00
Asif Bacchus cda29f2ef1 fix(wakeup): fix error handling from Send-MagicPacket
- adapt to changes in error handling in upstream module
2021-09-05 18:33:24 -06:00
Asif Bacchus 56bc398bf0 struct(wakeup): use list for target computers
- prevent future multiple read of database file
2021-09-05 17:25:15 -06:00
Asif Bacchus 939ff159f5 struct(wakeup): basic WOL invocation script
- generate dummy database of computers
- basic script to wake up computers found in database
2021-09-05 17:06:38 -06:00
Asif Bacchus f0ddf5ab5a chore(git): add gitignore and attributes, Rider IDE settings 2021-09-05 17:05:38 -06:00
Asif Bacchus ec9b44d8d5 Initial commit 2021-09-04 20:52:49 -06:00