473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to start a disabled service?

yxq
Hello

I want to start a disabled service using VB.Net, i use the start propetry in
ServiceController class,

but it can not start a disabled service, how to do?

Many thanks
Nov 20 '05 #1
3 3971
Use the System.ServiceProcess.ServiceController class.

Cheers
Dan

"yxq" wrote:
Hello

I want to start a disabled service using VB.Net, i use the start propetry in
ServiceController class,

but it can not start a disabled service, how to do?

Many thanks

Nov 20 '05 #2
i assume you would have to change service status to manual, or
Automatic, THEN start it.

the 'SC' command line tool might give you some leads.

Dan Kelley wrote:
Use the System.ServiceProcess.ServiceController class.

Cheers
Dan

"yxq" wrote:

Hello

I want to start a disabled service using VB.Net, i use the start propetry in
ServiceController class,

but it can not start a disabled service, how to do?

Many thanks

Nov 20 '05 #3
yxq
Thank you
"isaac rainsford" <ro****@nospam.dr.com> дÈëÓʼþ
news:40********@duster.adelaide.on.net...
i assume you would have to change service status to manual, or
Automatic, THEN start it.

the 'SC' command line tool might give you some leads.

Dan Kelley wrote:
Use the System.ServiceProcess.ServiceController class.

Cheers
Dan

"yxq" wrote:

Hello

I want to start a disabled service using VB.Net, i use the start propetry inServiceController class,

but it can not start a disabled service, how to do?

Many thanks

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matt Rapoport | last post by:
I'd like to programmatically remove a service or change its startup type to disabled. I know how to remove it from the command line but is there another way using the win32 extensions? I've...
3
by: alan_sec | last post by:
Hi everybody, i need some help please. I have installed DB2 UDB 7.2 on Windows and created database and it worked fine (i could access it from control centar nad using eclipse plug-in...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
3
by: kneidels | last post by:
Hey folks on XPP here. I have always had IIs started by default, but suddenly now i see my default (and only) website is off. i get this message when trying to start it - running...
0
by: =?Utf-8?B?VGVycmVsbCBNaWxsZXI=?= | last post by:
security updates 928365 and 928366 installed automatically. Now I cannot access my web server from within Framework 1.1 SP1, either in an ASP>Net web project or a Windows project. We do not have...
5
by: =?Utf-8?B?R2VyYXJk?= | last post by:
Help! I've just installed .net 3.5 on a Windows Server 2003 box. Had .Net 2 installed previously, including SQL Express 2005. Rebooted after install of 3.5, but SQL Server Express 2005 is...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
1
by: =?Utf-8?B?UHNldQ==?= | last post by:
Hello. System: Win XP Media Centre Edition – Service Pack 3 Somehow, I picked up a variant of VirtuMonde; Symantec Anti-virus, Spybot Search & Destroy etc did not locate it; I discovered it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.