Under Linux / UNIX it is very easy to find out all running services and shutdown unwanted services. All you have to do it go through the following directories or configuration files:
=> /etc/init.d/
=> /etc/rcX.d/
=> /etc/xinetd./d
=> /etc/inetd.conf
=> /usr/local/etc/rc.d

You can also use tools such as CentOS / RHEL ntsysv tool / Debian / Ubuntu service configuration tool. Ultimately, netstat command always displays a list of all open ports:
# netstat -tulpn

Controlling Services under MS Windows Server

Shutting down services under Windows Vista or Server 2003 is not straightforward. Microsoft allows different ways to start an application at system startup or user login which results into a true messy system. MSConfig utility bundled with Windows Me and XP does a good job but it is not sufficient. There is a nice utility called Autorun:

This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and shows you the entries in the order Windows processes them. These programs include ones in your startup folder, Run, RunOnce, and other Registry keys. You can configure Autoruns to show other locations, including Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond the MSConfig utility bundled with Windows Me and XP.

Autoruns’ Hide Signed Microsoft Entries option helps you to zoom in on third-party auto-starting images that have been added to your system and it has support for looking at the auto-starting images configured for other accounts configured on a system. Also included in the download package is a command-line equivalent that can output in CSV format, Autorunsc.

Use autoruns utility to manage all startup programs under Windows. You’ll probably be surprised at how many executables are launched automatically!

Windows Server 2003 / 2008 / XP / Vista - Autoruns to control Services
(Fig. 01: Autoruns in Action)

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one
CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • Si_4&a$=( Jan 10, 2008 @ 18:43

    how to open windows registry (hives like SYSTEM, SOFTWARE) from Linux?

  • Davide Jan 13, 2008 @ 9:59

    Interesting article.
    It will be useful to see other win-server-article viewed by an unix admin.

  • 🐧 nixCraft Jan 13, 2008 @ 10:33

    Si_4&a$, You can’t.

    Davide, we will try to cover windows-server related stuff (which is depend upon current poll result)

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum