having scripts in powerhell/exchange (LoopedWinrm)
simple restart of the winrm service on windows machine causes an "InvalidSelectors"-error when script is invoked.
id this error occured once no script can be executed. Even the simple testconnection using cmd fails.
The only resolution seems to be restarting midpoint, workaround is to use powershell instead of powerhell.
contains some prototype code resulting in succesfull script execution.