Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Creating Services


  • Please log in to reply

#1
jaxisland

jaxisland

    Member 1K

  • Member
  • PipPipPipPip
  • 1,703 posts
I need to know if anyone knows the syntax for the sc create command. I am following what I see from MS but it still wont work.

Thanks
  • 0

Advertisements


#2
jaxisland

jaxisland

    Member 1K

  • Topic Starter
  • Member
  • PipPipPipPip
  • 1,703 posts
I did find the synatax it is this:

sc.exe create "file name" binPath= "path to binary file"


Now my only problem is I cannot find the right binary file for WinPcap.

If anyone knows, help would be appreciated, thanks.
  • 0

#3
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
on my winpcap (that is needed by ethereal) i think the rpcapd.exe is the capture daemon (though by the name it could be the remote packet capture daemon) the other two exe's look like management daemons
  • 0

#4
jaxisland

jaxisland

    Member 1K

  • Topic Starter
  • Member
  • PipPipPipPip
  • 1,703 posts
Roger that, so I create a service pointing to the rpcapd.exe but I get this error:

Could not start the "my name" serivce on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.


Any ideas on that?
  • 0

#5
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
not as of right now...but what exactly are you trying to do (while i research)
  • 0

#6
jaxisland

jaxisland

    Member 1K

  • Topic Starter
  • Member
  • PipPipPipPip
  • 1,703 posts
My companys in house software uses WinPcap. Same version as Ethereal. What I would like to do is be able to install it as a service so user accounts with limited permission can use our software. By default WinPcap needs administrator or Power user permissions to run.
  • 0

#7
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
AH...hmm i'll keep researching if i can

support@cacetech.com the winpcap support email

http://www.winpcap.o...ber/000319.html interesting but don't know that it will be for sure to help
  • 0

#8
jaxisland

jaxisland

    Member 1K

  • Topic Starter
  • Member
  • PipPipPipPip
  • 1,703 posts
Ok here we go. I have the answer. From personal experience I know this will be the first answer to this question on the whole internet.

When WinPcap gets installed from our software by default it adds this registry key:
HKLM\System\CurrentControlSet\Services\NPF
Under NPF there is a REG_DWORD called Start, by default the value is Hex 3.

In order for WinPcap to function with limited permissions the npf.sys driver needs to start when windows boots. You do this by changing the hex value from 3 to 2.

Thats it.

Now I will make a new .exe for our software with that code in it and boom, its good to go.

Now for people who have installed a recent version of Ethereal, this is done completely automatically by selecting the checkbox to start NPF when windows boots, during the install. By checking that box, it makes that registry key automatically.

If anyone has questions, please ask I will be glad to help anyone else with this issue.

I put a week into tracking down 1 registry key. Please share this info.

Thanks for the ideas dsenette
  • 0

#9
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
sorry that i'm never actually able to help with any of your problems...they are always fun
  • 0

#10
jaxisland

jaxisland

    Member 1K

  • Topic Starter
  • Member
  • PipPipPipPip
  • 1,703 posts
I do try and post the most off the wall happens to no one else errors because there is never any answers on the web, anywhere. So I try to make sure I get all of them on here so I can try and help someone else.

You hit it right on the head, it is fun!

:whistling:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP