windows server services

Is there an easy way to get a list of all major services/roles running on a windows server (i.e. applications, web servers, database servers) or do you have to list all services and manually go through them to determine which are the major roles/services running on that server? what tools could be used to remotely determine what major roles/services are running on a given windows server to get an idea on the function of that server?
LVL 4
pma111Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marwan OsmanCommented:
this depends on the application running on your server, for example if you have a windows server running exchange server, go to the services, arrange by name, and go to the services starting with the name of your application, so in this example, go to services starting with Microsoft exchange and you will find the services related to the exchange roles, like the services: Microsoft Exchange IMAP4 and Microsoft Exchange POP3 service......
TemodyPickalbatros, IT ManagerCommented:
what`s you windows server version Server 2003 2008 or 2012

is windows server 2003 2008 or 2012
from cmd Type net start
for windows Server 2008 and 2012 best tools
run Task Manager by right clicking on the Taskbar go to services tap
pma111Author Commented:
Is there an easy way to export the services running list to say a xlsx spreadsheet? the servers are all running 2008 R2.
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

TemodyPickalbatros, IT ManagerCommented:
net start > "c:\Services.txt"
for any type you need just change "C:\Services.xls"
pma111Author Commented:
is net start just listing running services?
pma111Author Commented:
and not those that are stopped
Marwan OsmanCommented:
It seems you want to learn about the services role, that is why I recommend to go to the services and check your application services by the method I mentioned since in that place you will find a description of each services which help you to learn about the service role
TemodyPickalbatros, IT ManagerCommented:
yes and There is tasklist for all process on the server
NVITEnd-user supportCommented:
Here's a powershell method, which finds running services and sends results to svcs.txt file:
1. Open powershell
get-service | where-object {$_.Status -eq "Running"} | export-csv svcs.txt -Delimiter ","

Open in new window

NVITEnd-user supportCommented:
Another powershell with different format:
get-service | where-object {$_.Status -eq "Running"} | format-table -property name,DisplayName | out-file svcs.txt

Open in new window

NVITEnd-user supportCommented:
Get running services on a remote computer:
get-service  -computername servername | where-object {$_.Status -eq "Running"} | format-table -property name,DisplayName | out-file svcs.txt

Open in new window

NVITEnd-user supportCommented:
Get running services on a remote computer. Send results to CSV format for Excel:
get-service -computername servername | where-object {$_.Status -eq "Running"} | select-object name,DisplayName | export-csv -NoTypeInformation svcs.csv -Delimiter ","

Open in new window

NVITEnd-user supportCommented:
> ...determine which are the major roles running on that server?

The below PowerShell cmdlets require loading the servermanager module. Example and how to load it at http://blogs.msdn.com/b/powershell/archive/2009/01/27/managing-server-features-with-powershell-cmdlets-on-windows-2008-server-r2-beta.aspx?PageIndex=2

The cmdlets are normally run from a server OS. Still, they can be run in Windows 7 via the Remote Server Administration Tools (RSAT), Windows PowerShell Modules.
- https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=7887
- https://technet.microsoft.com/en-us/library/dd759202.aspx#BKMK_ps
- http://serverfault.com/questions/361016/is-servermanager-module-available-on-windows-7

Local server:
Get-WindowsFeature | where {$_.installed -eq $true} | select displayname, name, installed

Open in new window


Remote server:
Get-WindowsFeature -computername servername | where {$_.installed -eq $true} | select displayname, name, installed

Open in new window


Send results to a .CSV:
Get-WindowsFeature -computername servername | where {$_.installed -eq $true} | select displayname, name, installed | export.csv -NoTypeInformation roles.txt -Delimiter ","

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.