Your company runs Remote Desktop Services.
You plan to install an application update for the lobapp.exe application on the Remote Desktop Session Host Server.
You find instances of the lobapp.exe processes left behind by users who have disconnected.
You need to terminate all instances of the lobapp.exe processes so that you can perform an application update.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A.
Run the Get-Process cmdlet on the Remote Desktop Session Host Server.
B.
Run the Tskill lobapp /a command on the Remote Desktop Session Host Server.
C.
End all instances of lobapp.exe in the Remote Desktop Services Manager console.
D.
Run the Tasklist /fi “IMAGENAME eq lobapp.exe” command on the Remote Desktop Session Host Server.
Explanation:
Tskill lobapp /a
tskill {<ProcessID> | <ProcessName>} [/server:<ServerName>] [/id:<SessionID> | /a] [/v]
Parameter
Description
<ProcessID>
Specifies the ID of the process that you want to end.
<ProcessName>
Specifies the name of the process that you want to end. This parameter can include wildcard characters.
/server:<ServerName>
Specifies the terminal server that contains the process that you want to end. If /server is not specified, the current terminal server is used.
/id:<SessionID>
Ends the process that is running in the specified session.
/a
Ends the process that is running in all sessions.
/v
Displays information about the actions being performed.
/?
Displays help at the command prompt.Source: http://technet.microsoft.com/en-us/library/cc753101(WS.10).aspx
Remote Desktop Services Manager:
Wrong Awnsers:
Tasklist
Displays a list of currently running processes on the local computer or on a remote computer. Tasklist replaces the tlist tool.Source: http://technet.microsoft.com/en-us/library/cc730909(WS.10).aspx
Get-Process
Although the following will work for a single instance:
(Get-Process lobapp).Kill()This will not work on multiple instances:
(Get-Process lobapp).Kill()But one could argue that using the ForEach-Object commandlet circumvents the issue:
(Get-Process lobapp)|ForEach-Object {$_.Kill()}
However because this requires more than just the Get-Process cmdlet, I choose to render this answer invalid.