Example #1
0
 public void SetAccountAsLocalSystem()
 {
     ServiceCredentialsEditor.SetWindowsServiceCredentials(_serviceController.ServiceName, ServiceCredentialsEditor.LOCAL_SYSTEM_USER, null);
 }
Example #2
0
 public void SetAccountAsLocalService()
 {
     ServiceCredentialsEditor.SetWindowsServiceCredentials(_serviceController.ServiceName, WellKnownSidType.LocalServiceSid);
 }