Remove-WssComputer Powershell command in Windows 2012 with Server Essentials

There are a few computers in the WSE dashboard that I can't remove from the dashboard. I found a Microsoft article showing how to do this using Powershell ( I must be missing something, because when I run the first of the two commands ($DeviceList = Get-WssComputer), I don't get any output I can use for the second command that removes the computer - I just get another command prompt. The second command that removes the computer is-

Remove-WssComputer -Computer $DeviceList[0] -RemoveBackup

Can someone clarify usage of these Powershell commands for me? I'm assuming that the [0] after $DeviceList in the second command is the info I need to enter, that comes from the output of the first command.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Raheman M. AbdulConnect With a Mentor Senior Infrastructure Support Analyst & Systems DeveloperCommented:
$DeviceList = @(Get-WssComputer)
Remove-WssComputer -Computer $DeviceList[0] -RemoveBackup

the second line removes the first computer in the list you received and stored in $deviceList variable since you are using $DeviceList[0]
to remove the second device use $DeviceList[1]  
similarly  use $DeviceList[2] , $DeviceList[3] etc

alternatively run this  to show how many devices you found:
$DeviceList = Get-WssComputer

to remove all devices found, use:
Get-WssComputer | Remove-WssComputer  -RemoveBackup
apmartinAuthor Commented:
Hi Raheman,

Thanks for the quick reply! One other question: when I run the $devicelist command, it spits out the list of computers and the properties for each computer. However, the computers do not show which number in the list they occupy. Is there a way to specify the name of the computer to remove, or have the $devicelist output show the number of each computer, which would be easier than counting through 50+ computers?
Raheman M. AbdulConnect With a Mentor Senior Infrastructure Support Analyst & Systems DeveloperCommented:
get-WssComputer takes no computername to specify the computer to get the deviceInfo for.

can you send the output of the following so we can filter based on that. I dont have access to servers now.

Get-WssComputer | export-csv c:\temp\deviceInfo.csv -nti
we can filter based on the computer name
Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
No comments added and is the only acceptable and relevant answer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.