Hello
I need some help formatting some data. I am scraping data from WMI into an array.
$data = Get-WmiObject -ComputerName $SiteServer -Namespace $Namespace -Query $query | Select Name | Sort Name
I am getting the data back, paraphrased below. I want to drop the "domain\" portion from each line in the array so all I have is a list of group names without the domain.
Domain\Group Name
Anyone have suggestions on how to do that?
-Tony