If I log into a Windows Server 2003 and I want to check with cmd.exe which roles are installed, how to do that?
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:
if the service is running, the command will output:
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.
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
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:
if it is installed you should see something like this:
If it is not installed, you'll get an error:
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:
to list all installed software, then again you can use findstr too look for the software you are after.