Comments and rearrange
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user