Register Service (WINDOWS)

Registering a WebSphere windows services are very similar to adding a linux service.

From a cmd prompt:

Change directory to %WAS_HOME%/bin – in this example it is D:\IBM\WebSphere\AppServer\bin

The syntax of the command is wasservice –add <service name> -serverName <name of server> -profilePath <path to server profile>

To enable the server to restart automatically and to encode the user name and password additional parameters are required

wasservice -add Dmgr -serverName dmgr -profilePath D:\IBM\WebSphere\AppServer\profiles\Dmgr01 -encodeParams -restart true -startType automatic -stopArgs "-username wasadmin -password

wasservice -add Node -serverName nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -encodeParams -restart true -startType automatic -stopArgs '-username wasadmin -password password -stopservers'

Once the wasservice command has been run successfully the new services will be visible within the services view: bild3