Its a short question but i have some problems understanding customobjects in powershell.
I tried to create a list but was not able to do make it work i have to less knowledge for this.
$applist = [PSCustomObject]@{
appname = $listitem
}
#somecode
do{
$appname = Read-Host "Which App you want to delete: [OneConnect]"
$listitem += "*$appname*"
#add $listitem to $applist except it is like **
$counterT++
}while($appname -notlike "")
$applist
i want to display $applist all the entries except the clear one
It should look like
*Zune*
*OneConnect*