Why is the code below returning $null
? I'm trying to store just unique values.
$DailyPathsToDelete = @("C:\temp\IMG000483\","C:\temp\IMG000483\")
$DailyPathsToDelete = Select-Object $DailyPathsToDelete -Unique
You can try :
$unique = $DailyPathsToDelete | Get-Unique