testing new script

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

View File

@@ -76,7 +76,6 @@ ForEach ($computer in $ComputerName)
Continue
}
If ($PSCmdlet.ShouldProcess($account)) {
Try {
$profile.Delete()
Write-Host "Profile deleted successfully" -ForegroundColor Green
@@ -85,7 +84,6 @@ ForEach ($computer in $ComputerName)
}
}
}
}
If($profilesFound -eq 0){
Write-Warning "No profiles found on $ComputerName with Name $UserName"