testing new script

This commit is contained in:
poslop
2025-02-13 12:07:35 -06:00
parent 20f22ba7f3
commit 45ecf4ca47

View File

@@ -62,7 +62,7 @@ ForEach ($computer in $ComputerName)
If($InactiveDays -ne [uint32]::MaxValue -And $profileUnusedDays -le $InactiveDays){ If($InactiveDays -ne [uint32]::MaxValue -And $profileUnusedDays -le $InactiveDays){
Write-Host "Skipping ""$account"" as it is recently used." -ForegroundColor Blue Write-Host "`nSkipping ""$account"" as it is recently used." -ForegroundColor Blue
Write-Host "Account SID: $sid" Write-Host "Account SID: $sid"
Write-Host "Special system service user: $special" Write-Host "Special system service user: $special"
Write-Host "Profile Path: $profilePath" Write-Host "Profile Path: $profilePath"
@@ -75,7 +75,7 @@ ForEach ($computer in $ComputerName)
$profilesFound ++ $profilesFound ++
If ($profilesFound -gt 1) {Write-Host "`n"} If ($profilesFound -gt 1) {Write-Host "`n"}
Write-Host "Start deleting profile ""$account"" on computer ""$computer"" ..." -ForegroundColor Red Write-Host "`nStart deleting profile ""$account"" on computer ""$computer"" ..." -ForegroundColor Red
Write-Host "Account SID: $sid" Write-Host "Account SID: $sid"
Write-Host "Special system service user: $special" Write-Host "Special system service user: $special"
Write-Host "Profile Path: $profilePath" Write-Host "Profile Path: $profilePath"