So I wanted to synchronize that entire folder including all its subfolders and files with Google Drive (backup). Couldn't so that so I figured why not try to un-hide what's hidden. So I right-clicked the AppData folder, and un-checked the "Hidden" attribute box. The process started. Then I got some error messages saying I don't have the permission to change the Hidden/Unhidden attributes of some XML and other files. I clicked on "Skip All" and waited for the process to complete.
Now I have some of the files of the "Local" subfolder, for example, hidden and most un-hidden. I haven't deleted any of the files of the entire AppData native folder, only attempted to change the attributes of all of them from Hidden to Unhidden.
I think my best bet would be to restore all of the AppData's native folder's content to its original state. How can I do that?
Would
"dism /online /cleanup-image /restorehealth" followed by "sfc /scannow" do this, or how could I do that?
I have written the following script to check if any of the files remain hidden, to which the answer is YES:
Now I have some of the files of the "Local" subfolder, for example, hidden and most un-hidden. I haven't deleted any of the files of the entire AppData native folder, only attempted to change the attributes of all of them from Hidden to Unhidden.
I think my best bet would be to restore all of the AppData's native folder's content to its original state. How can I do that?
Would
"dism /online /cleanup-image /restorehealth" followed by "sfc /scannow" do this, or how could I do that?
I have written the following script to check if any of the files remain hidden, to which the answer is YES:
Powershell:
# Define the folder path to check
$folderPath = "C:\YourFolderPathHere"
# Get all files and subfolders within the specified folder
$items = Get-ChildItem -Path $folderPath -Recurse
# Check if any item is not hidden
$notHidden = $items | Where-Object { -not $_.Attributes.HasFlag([System.IO.FileAttributes]::Hidden) }
if ($notHidden -eq $null) {
Write-Output "All files and subfolders within $folderPath are hidden."
} else {
Write-Output "Some files or subfolders within $folderPath are not hidden."
$notHidden | Select-Object FullName
}
My Computer
System One
-
- OS
- Win11