Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • Granting User Rights in C#

    As a follow-up to my previous post about changing a Windows Service's user account - there was one think I forgot. In order for a user to run a service, that user must be granted the "Run as Service" right by the operating system. Usually it's not a problem - the Services MMC snap-in automatically adds...
    Posted to Miscellaneous Debris (Weblog) by Avner Kashtan on 05-10-2007, 12:00 AM
    Filed under: .NET, CodeSnippets, C#, WMI
  • Setting Windows Service Account - C# and WMI

    I've been busting my brains for over two hours trying to accomplish a relatively simple task - changing the username and password of a currently running Windows Service. Should be trivial enough, but the managed ServiceController class doesn't give me that ability, so I had to resort to more esoteric...
    Posted to Miscellaneous Debris (Weblog) by Avner Kashtan on 05-08-2007, 12:00 AM
    Filed under: .NET, CodeSnippets, C#, WMI
Page 1 of 1 (2 items)