testing new script
This commit is contained in:
@@ -76,13 +76,11 @@ 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user