April 2, 20233 yr Hi to all. I need help to create a script to poweroff two windows vm. I use this comemand for shutdowd VM "net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.ttt" How i can insert a pause before run the second poweroff ocmmand and another delay for Unrayd shutdown command. #!/bin/bash net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.tt1 delay net rpc shutdown -f -t 0 -C 'message' -U userName%password -I xxx.yyy.zzz.tt2 delay (ping until xxx.yyy.zzz.tt1 & xxx.yyy.zzz.tt2 no reply) unraid shutdown thanks for help. 🙂 Edited April 2, 20233 yr by Massi
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.