Comments and rearrange
This commit is contained in:
@@ -97,7 +97,7 @@ ForEach ($computer in $ComputerName)
|
||||
}
|
||||
|
||||
Try {
|
||||
$profile.Delete()
|
||||
Remove-CimInstance $profile
|
||||
Write-Host "Profile deleted successfully" -ForegroundColor Green
|
||||
} Catch {
|
||||
Write-Host "Error during delete the profile" -ForegroundColor Red
|
||||
|
||||
Reference in New Issue
Block a user