Sunday, April 3, 2016

Clear your AUC files for All user.

Clear your AUC files for All user.

# Create array containing all user profile folders 
$colProfiles = Get-ChildItem "C:\Users\" -Name
$colProfiles = $colProfiles -ne "Public"
# Removes AUC files from each user profile folder 
ForEach ( $objProfile in $colProfiles ) 

    Get-ChildItem "C:\Users\$objProfile\AppData\Local\*.AUC" -force | remove-item -force
}


if you just want to clear the one user go to the following

c:\users\username\AppData\Local and clear anything ending with .AUC

No comments: