• It's probably best for a new question, So create a new thread

    If

    $Server = CLusterNode

    that will show you if SQL is running on that node but there will be a better way to fully answer your question

    https://blog.robsewell.com Its where I blog
    SQL Community Slack Channel https://sqlps.io/slack
    The Best PowerShell Module for the Modern SQL DBA https://dbatools.io
    Data South West User Group http://sqlsouthwest.co.uk/[/url]