Windows SSH Platform is unable to restart services when there is a space in the Service Name
说明
When using WIndows SSH platform and managing dependent Windows services, the following error appears in SPP version 7.0.1 and 7.0.2 LTS:
Failed stopping service {Service Name} with error: The syntax of this command is: NET STOP [service] . Updated service account password for service:'{Service Name}', account:'DOMAIN\SERVICEACCT' on asset: ASSET-NAME. Service {Service Name} restart failed with error: The syntax of this command is: NET START [service]
原因
The Windows service name (Not Display name) has a space character in the Service name causing this issue on Windows SSH platform only.
解决办法
STATUS: Change Request # 414584 will address this issue in a future release of SPP
WORKAROUND: Disable the service restart option in the Password profile for Assets that have services with spaces in the service name and after the password is changed then the dependent services can be restarted either manually or using a scheduled task that runs after password change schedule.