Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I log into a Windows Server 2003 and I want to check with cmd.exe which roles are installed, how to do that?

share|improve this question
    
The concept of roles like in Server 2008Rx does not really exist in 2003. Are you talking about which 'Windows Components' are enabled? IIS would be a component, like AD is not part of the 'Windows Component Wizard', what exactly do you need to know? –  Peter Hahndorf Feb 1 '12 at 14:39
    
@PeterHahndorf oops, ok i didn't know that, since i'm only used to ws 2008 r2. yes i'm looking for a list of what is called role in ws 2008 r2. in my case i wanted to see if the win 2003 server is running as a RADIUS server, i could check that by looking at the opened ports in netstat but there must be an easier way i think.. i prefered cmd.exe to look thinks up. –  Ian Feb 1 '12 at 16:38
add comment

1 Answer

up vote 1 down vote accepted

The concept of roles like in Server 2008Rx does not really exist in 2003. Extra features are know as 'Windows Components'.

The Windows 2003 implementation of a RADIUS server is called 'Internet Authentication Service', to find out whether this service is running open a command prompt and type:

net start | findstr /c:"Internet Authentication Service"

if the service is running, the command will output:

Internet Authentication Service

if not, it wont output anything.

If you are using a third party RADIUS server, find out the name of it and query for that.

net start

by itself gives all all the running services.

If the service is installed by not running, it is slightly more complicated:

Find out the internal name of the service, open

services.msc

Find the service in question, "Internet Authentication Service" and show the properties, the General tab has the service name, in our case: 'IAS'

back on the command line type:

sc query IAS

if it is installed you should see something like this:

SERVICE_NAME: IAS
    TYPE               : 20  WIN32_SHARE_PROCESS
    STATE              : 4  RUNNING
                            (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
    WIN32_EXIT_CODE    : 0  (0x0)
    SERVICE_EXIT_CODE  : 0  (0x0)
    CHECKPOINT         : 0x0
    WAIT_HINT          : 0x0

If it is not installed, you'll get an error:

[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.

If the 'role' you are looking for is not using a Windows Service, than you have to look elsewhere. You can get a list of installed software using a script with WMI.

Or you can use PsInfo:

psinfo.exe -i

to list all installed software, then again you can use findstr too look for the software you are after.

share|improve this answer
    
perfect, thanks! –  Ian Feb 1 '12 at 19:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.