testing new script
This commit is contained in:
@@ -76,14 +76,12 @@ ForEach ($computer in $ComputerName)
|
|||||||
Continue
|
Continue
|
||||||
}
|
}
|
||||||
|
|
||||||
If ($PSCmdlet.ShouldProcess($account)) {
|
Try {
|
||||||
Try {
|
$profile.Delete()
|
||||||
$profile.Delete()
|
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