I am building a PowerShell script that will upgrade an existing installation of StateServer. I am trying to make it as graceful and robust as possible.
I need a way to remove the host from the store before I uninstall it.
The documentation is vague and references a command (
I also can't seem to get the commandlets to accept piped input:
These ignore everything after the pipe.
I need a way to remove the host from the store before I uninstall it.
The documentation is vague and references a command (
leave_wait
) that doesn't seem to exist:
Be sure to wait for the command to fully complete (indicated by an inactive status) prior to restarting the host. Use the leave_wait command instead of this command whenever possible.
Get-Host | Where-Object {$_.HostAddress -eq "10.5.107.104"}
Get-Host | Where-Object {$_.IsLocal -eq "True"}
These ignore everything after the pipe.