Powershell Script to check Offline Server

chetan Vishwakarma 146 Reputation points
2021-02-05T12:35:32.937+00:00

Hello All ,

I have many servers and wanted to create a script in powershell which daily checks the status of the server and if any server will be down then it will report that information in text file.

Output will be like below

DownServerList

Server1
Server2
Server3

Thank Regards
ChetanV

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,576 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 34,761 Reputation points
    2021-02-05T12:43:22.23+00:00

    Just do an internet search, find one that's close too what you want, and modify it to suit your needs.

    https://www.bing.com/search?q=powershell+check+server+status

    Like this one.

    https://www.powershellbros.com/use-powershell-function-to-check-if-servers-are-accessible/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.