Download and install Wireshark, if necessary.
Please make a note of where you installed it as we will need that location in a later step.

Start AlwaysUp.

Select Application > Add to open the Add Application window:

On the General tab:

In the Application field, enter the full path to the TShark executable, tshark.exe.
If you installed Wireshark in the default location, this is

C:\Program Files\Wireshark\tshark.exe

In the Arguments field, enter your command line flags for tshark.exe.
For this tutorial, we specify the following parameters to capture raw output from a specific device to a set of revolving data files (but none of these parameters are uniquely required to run TShark as a service):

Note that you can run tshark.exe -D to list the interfaces available on your system.

And be sure to put quotes around any file names containing spaces! Indeed, certain commands like -f and -w require double quotes around their values.

In the Name field, enter the name that you will call your application in AlwaysUp.
We have used TShark but you can specify almost anything you like.

By default, TShark will display a DOS command window when it is run by AlwaysUp. This can be useful for
debugging purposes, but if you wish to avoid seeing it, click over to the Logon tab and check the When a user logs on, don't show the application's windows... box.

Click over to the Startup tab and check the Ensure that the Windows Networking components have started box.
This informs AlwaysUp that TShark needs the TCP/IP networking stack properly initialized before it can start its work.

Click the Save >> button. In a couple of seconds, an application called TShark (or whatever you called it) will appear in the AlwaysUp window.
It is not yet running though.

To start the network capture, choose Application > Start "TShark".

That's it! Next time your computer boots, TShark will start logging your network traffic immediately, before anyone logs on.
We encourage you to edit the application in AlwaysUp and check out the many other settings that may be appropriate for your environment.
For example, configure AlwaysUp to send you an email whenever TShark starts (Email tab), or boost TShark's priority to give it preferential treatment on your computer (General tab).

Are you trying to log data to a network drive? You will need to run your service in a specific account having the necessary permissions (via the LogOn tab) and
check the Attempt to automatically reconnect all network drives box on the Startup tab.
Read more about the situation in our FAQ.