SetServiceRunAs


SetServiceRunAs
    [-serviceName] <String>
    [-serviceUser] <String>
    [-servicePassword] <String>

Description

Set the startup user for a service

Example


SetServiceRunAs -serviceName "MySvc" -serviceUser "MyUser" -servicePassword "Secure_User_Password"