testing new script

This commit is contained in:
poslop
2025-02-13 11:16:47 -06:00
parent 7857db2059
commit 1159cd4a74

View File

@@ -76,14 +76,12 @@ ForEach ($computer in $ComputerName)
Continue
}
If ($PSCmdlet.ShouldProcess($account)) {
Try {
$profile.Delete()
Write-Host "Profile deleted successfully" -ForegroundColor Green
} Catch {
Write-Host "Error during delete the profile" -ForegroundColor Red
}
}
Try {
$profile.Delete()
Write-Host "Profile deleted successfully" -ForegroundColor Green
} Catch {
Write-Host "Error during delete the profile" -ForegroundColor Red
}
}
}