powershell - Confirming an IP before starting an executable in winxp32 -
windows question y'all. have powershell v1.0 , that's making more difficult, first foray powershell. i'm linux/osx guy.
to make matters worse on managed system, if didn't come winxp base install can't install it.
i need basic while loop pings server1, , once has successful ping start task.exe
all can find on technet , othe ms sites , web @ large powershell v3 or v4.
sorry noob :(
i don't remember v1 , wouldn't support anymore, , don't have system can test on think should work:
do { $result = ping server1 } until ( $result -match 'received = [1-4]' ) & task.exe
Comments
Post a Comment