Usage

<< Click to Display Table of Contents >>

Navigation:  Security Tools > servicesecure >

Usage

Command Line Parameters

 

srvsec /r /c /u <username> /p <password> <hostname>

 

<without options>

enumerates all services, grouped by service account username



\\servername

Perform all actions on computer "servername"



/u <username>

List only services running under the specified username



/p <password>

Set the password to password. Only valid in conjunction with username.



/c /changepwd

Changes the password in the SAM database (or Active Directory, depending on network configuration)



/r /restart

Restart running service(s) after the password has been changed. Only valid in conjunction with the /u and /p options.

 

Examples

 

Example 1: Enumerate all services on host \\server1

 

srvsec \\server1

 

Example 2: Show all services on host \\fileserver that are using the DOMAIN\Administrator account

 

srvsec /u DOMAIN\Administrator \\fileserver

 

Example 3: Change the service password of all services that are using the DOMAIN\SrvAcc username to "yUye$#34ww:"

 

srvsec /u DOMAIN\SrvAcc /p yUye$#34ww:

 

Example 4: Change the service password of all services running on \\dbserver1 that are using the .\User1 username to "blaUip432" and restart the modified services

 

srvsec /u .\User1 /p blaUip432 /r \\dbserver1

 

Example 5: Change the service password of all services running on \\dbserver1 that are using the wupdup username to "blaUip432" and restart the modified services

 

srvsec /u wupdup /p blaUip432 /c /r \\dbserver1