Comments and rearrange

This commit is contained in:
poslop
2025-02-13 12:27:00 -06:00
parent b98491ed30
commit 05f8c11367

View File

@@ -97,7 +97,7 @@ ForEach ($computer in $ComputerName)
} }
Try { Try {
$profile.Delete() Remove-CimInstance $profile
Write-Host "Profile deleted successfully" -ForegroundColor Green Write-Host "Profile deleted successfully" -ForegroundColor Green
} Catch { } Catch {
Write-Host "Error during delete the profile" -ForegroundColor Red Write-Host "Error during delete the profile" -ForegroundColor Red