Discussion:
Enabling and starting RasMan service from batch file
(too old to reply)
mirin
2008-05-26 07:48:12 UTC
Permalink
Hello Experts,

Every time my machine restarts, the RasMan (Remote Access Connection
Manager) Service is disabled as a network security policy.
I cannot change this policy for a single machine.
So I want to write a batch file, scheduled to run at startup, which
will:
1. Set the startup type to Automatic or Manual
2. Start the service

I suppose for #2 I'll need to run the command 'NET START RasMan'.
What command do I need to put in the batch file for #1?

Much appreciate any advice.

Regards,
Mirin
Dave Patrick
2008-05-26 13:54:32 UTC
Permalink
sc config RasMan start= demand

netsvc /start RasMan

http://www.petri.co.il/download_free_reskit_tools.htm


Also
http://technet.microsoft.com/en-us/sysinternals/bb897542.aspx
--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
Post by mirin
Hello Experts,
Every time my machine restarts, the RasMan (Remote Access Connection
Manager) Service is disabled as a network security policy.
I cannot change this policy for a single machine.
So I want to write a batch file, scheduled to run at startup, which
1. Set the startup type to Automatic or Manual
2. Start the service
I suppose for #2 I'll need to run the command 'NET START RasMan'.
What command do I need to put in the batch file for #1?
Much appreciate any advice.
Regards,
Mirin
John John (MVP)
2008-05-26 14:24:22 UTC
Permalink
With NT 4.0 I'm not sure that there is an installed tool to do this.
The start type for the service is held in the Start value at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan

Start values are:

0x0 (Boot)
0x1 (System)
0x2 (Automatic)
0x3 (Manual)
0x4 (Disabled)

You could use a registry file or the Resource Kit's Reg.exe to change
the value to suit but I don't think this is the best way to do this, try
it and see.

The prefered way of doing this would be by using the SC.exe tool from
the Resource Kit.

John


You could
Post by mirin
Hello Experts,
Every time my machine restarts, the RasMan (Remote Access Connection
Manager) Service is disabled as a network security policy.
I cannot change this policy for a single machine.
So I want to write a batch file, scheduled to run at startup, which
1. Set the startup type to Automatic or Manual
2. Start the service
I suppose for #2 I'll need to run the command 'NET START RasMan'.
What command do I need to put in the batch file for #1?
Much appreciate any advice.
Regards,
Mirin
mirin
2008-05-27 04:53:12 UTC
Permalink
Post by John John (MVP)
With NT 4.0 I'm not sure that there is an installed tool to do this.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan
0x0 (Boot)
0x1 (System)
0x2 (Automatic)
0x3 (Manual)
0x4 (Disabled)
You could use a registry file or the Resource Kit's Reg.exe to change
the value to suit but I don't think this is the best way to do this, try
it and see.
The prefered way of doing this would be by using the SC.exe tool from
the Resource Kit.
John
You could
Post by mirin
Hello Experts,
Every time my machine restarts, the RasMan (Remote Access Connection
Manager) Service is disabled as a network security policy.
I cannot change this policy for a single machine.
So I want to write a batch file, scheduled to run at startup, which
1. Set the startup type to Automatic or Manual
2. Start the service
I suppose for #2 I'll need to run the command 'NET START RasMan'.
What command do I need to put in the batch file for #1?
Much appreciate any advice.
Regards,
Mirin
Dave/John,

Thanks a lot for your advice.
I could achieve the task with the sc.exe tool.

Many Thanks!
Mirin
John John (MVP)
2008-05-27 12:32:39 UTC
Permalink
Post by mirin
Dave/John,
Thanks a lot for your advice.
I could achieve the task with the sc.exe tool.
Many Thanks!
Mirin
You're welcome.

John

Loading...