This command configures the test agent to run as an interactive process. Syntax- TestAgentConfig.exe configureAsProcess /userName: ...

This command configures the test agent to run as an interactive process.

Syntax-
TestAgentConfig.exe configureAsProcess [/userName:] 
         [/password:] [/enableAutoLogon:] 
         [/disableScreenSaver:] [/port:]
         [/testController:] [/AgentUri:]
         [/currentProcessUserPassword:]
         [/LabServiceUserName:] 
         [/LabServiceUserPassword:]
         [/RemoveLabServiceUser]
                    
userName                    User account under which test agent process will 
                            run. Default is the currently logged in user.
                    
password                    User account password. You will be prompted for 
                            password if you do not provide one. 
                    
enableAutoLogon             Enables auto logon for the user account specified.
                            Default is No.
                    
disableScreenSaver          Ensures screen saver is disabled for the user 
                            account specified. Default is Yes.
                    
testController              URI of the test controller with which this test 
                            agent will be registered. Specify a blank value
                            to unregister from the current test controller.
                    
agentUri                    Agent Uri if machine is already registered on the 
                            Team Foundation Server.
                    
port                        Port on which this test agent will listen for 
                            request from the test controller. Default port 
                            is 6910.
                    
CurrentProcessUserPassword  Password of the user account under which test agent 
                            process is currently running. It is required for 
                            cleaning up of startup programs.

RemoveLabServiceUser        Removes the lab service user account configuration 
                            
LabServiceUserName          User account to be used as lab service user account

LabServiceUserPassword      Password of the specified lab service user account.
                            You will be prompted if you do not provide one

Examples:
TestAgentConfig.exe configureAsProcess

TestAgentConfig.exe configureAsProcess /userName:domain\user /password:userPassword /enableAutoLogon:yes /testController:"MyController:6901" /port:6910