testing new script
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user