HighTechTalks DotNet Forums  

Scripting a service to Automatic from Manual

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Scripting a service to Automatic from Manual in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Chris at RBCDAIN
 
Posts: n/a

Default Scripting a service to Automatic from Manual - 03-04-2005 , 02:51 PM






Hi,

We have an issue, we know how to script a service to Start and Stop with Net
Start and Net Stop, but can you script a service to change from Manual to
Automatic and vice versa with scripting and with out using VB?

Thanks.

C

Reply With Quote
  #2  
Old   
Kyle Alons
 
Posts: n/a

Default Re: Scripting a service to Automatic from Manual - 03-04-2005 , 03:34 PM






http://tinyurl.com/5k9rm

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.visualbuild.com/

"Chris at RBCDAIN" <Chris at RBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:368B4881-EE83-4AAE-86CA-B927C32E658F (AT) microsoft (DOT) com...
Quote:
Hi,

We have an issue, we know how to script a service to Start and Stop with
Net
Start and Net Stop, but can you script a service to change from Manual to
Automatic and vice versa with scripting and with out using VB?

Thanks.

C



Reply With Quote
  #3  
Old   
Chris at RBCDAIN
 
Posts: n/a

Default Re: Scripting a service to Automatic from Manual - 03-04-2005 , 04:11 PM



Is there anything for DOS?

C




"Kyle Alons" wrote:

Quote:
http://tinyurl.com/5k9rm

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.visualbuild.com/

"Chris at RBCDAIN" <Chris at RBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:368B4881-EE83-4AAE-86CA-B927C32E658F (AT) microsoft (DOT) com...
Hi,

We have an issue, we know how to script a service to Start and Stop with
Net
Start and Net Stop, but can you script a service to change from Manual to
Automatic and vice versa with scripting and with out using VB?

Thanks.

C




Reply With Quote
  #4  
Old   
Steve Seguis [MVP]
 
Posts: n/a

Default Re: Scripting a service to Automatic from Manual - 03-04-2005 , 11:05 PM



If you have the windows resource kit, you can use the SC.EXE command.

--
Steve Seguis - MCSE, MVP Windows Server, SCJP
SCRIPTMATION, INC.
Automating the Enterprise
http://www.scriptmation.com

"Chris at RBCDAIN" <ChrisatRBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:E057AE8C-1AE1-42BE-96A3-67C563F9260D (AT) microsoft (DOT) com...
Quote:
Is there anything for DOS?

C




"Kyle Alons" wrote:

http://tinyurl.com/5k9rm

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.visualbuild.com/

"Chris at RBCDAIN" <Chris at RBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:368B4881-EE83-4AAE-86CA-B927C32E658F (AT) microsoft (DOT) com...
Hi,

We have an issue, we know how to script a service to Start and Stop
with
Net
Start and Net Stop, but can you script a service to change from Manual
to
Automatic and vice versa with scripting and with out using VB?

Thanks.

C






Reply With Quote
  #5  
Old   
Chris at RBCDAIN
 
Posts: n/a

Default Re: Scripting a service to Automatic from Manual - 03-08-2005 , 01:47 PM



Thanks

"Steve Seguis [MVP]" wrote:

Quote:
If you have the windows resource kit, you can use the SC.EXE command.

--
Steve Seguis - MCSE, MVP Windows Server, SCJP
SCRIPTMATION, INC.
Automating the Enterprise
http://www.scriptmation.com

"Chris at RBCDAIN" <ChrisatRBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:E057AE8C-1AE1-42BE-96A3-67C563F9260D (AT) microsoft (DOT) com...
Is there anything for DOS?

C




"Kyle Alons" wrote:

http://tinyurl.com/5k9rm

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.visualbuild.com/

"Chris at RBCDAIN" <Chris at RBCDAIN (AT) discussions (DOT) microsoft.com> wrote in
message news:368B4881-EE83-4AAE-86CA-B927C32E658F (AT) microsoft (DOT) com...
Hi,

We have an issue, we know how to script a service to Start and Stop
with
Net
Start and Net Stop, but can you script a service to change from Manual
to
Automatic and vice versa with scripting and with out using VB?

Thanks.

C







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.