locked
How to know whether OS is booted up after reboot RRS feed

  • Question

  • Hi there. I need to install some system components across many servers. I wrote a script that install them and then reboots server.

    Then I want to check servers? If I just make invoke-command when os is not booted up, it will fail. 

    How can I find out when OS is ready to serve my request after reboot?

    thanks.


    • Edited by pawellrus Wednesday, January 17, 2018 9:55 AM
    Wednesday, January 17, 2018 9:24 AM

All replies

  • Restart-Computer -Wait

    help Restart-Computer -Online


    \_(ツ)_/

    Wednesday, January 17, 2018 10:43 AM
  • thanks. 

    So simple. I should've been searching more diligently before posting.

    Wednesday, January 17, 2018 12:27 PM
  • You can mark the above reply by jrv as answer

    Regards kvprasoon

    Wednesday, January 17, 2018 6:51 PM
  • lots of ways, e.g.:

    Test-Connection -ComputerName "remote server name"
    
    PLUS:
    
    gps

    Regards,

    AP

    Thursday, January 18, 2018 4:34 AM